|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<main class="d-flex align-baseline">
|
|
<main class="d-flex align-baseline">
|
|
|
- <span class="mr-2 text-ot-dark_grey font-weight-bold">{{ $t('display_data') }} : </span>
|
|
|
|
|
|
|
+ <span v-show="mdAndUp" class="mr-2 text-ot-dark_grey font-weight-bold">{{ $t('display_data') }} : </span>
|
|
|
|
|
|
|
|
<v-btn-toggle
|
|
<v-btn-toggle
|
|
|
ref="toggle"
|
|
ref="toggle"
|
|
@@ -33,7 +33,7 @@ import {useFormStore} from "~/stores/form";
|
|
|
import {useAccessProfileStore} from "~/stores/accessProfile";
|
|
import {useAccessProfileStore} from "~/stores/accessProfile";
|
|
|
import {Ref} from "@vue/reactivity";
|
|
import {Ref} from "@vue/reactivity";
|
|
|
import {useEntityManager} from "~/composables/data/useEntityManager";
|
|
import {useEntityManager} from "~/composables/data/useEntityManager";
|
|
|
-import {useTheme} from "vuetify";
|
|
|
|
|
|
|
+import {useDisplay, useTheme} from "vuetify";
|
|
|
import {Access} from "~/models/Access/Access";
|
|
import {Access} from "~/models/Access/Access";
|
|
|
|
|
|
|
|
// TODO: en v3.0.5, pas de solution documentée pour renseigner directement la couler dans le template, à revoir
|
|
// TODO: en v3.0.5, pas de solution documentée pour renseigner directement la couler dans le template, à revoir
|
|
@@ -42,6 +42,7 @@ const color = useTheme().current.value.colors['ot-green']
|
|
|
const { setDirty } = useFormStore()
|
|
const { setDirty } = useFormStore()
|
|
|
const accessProfileStore = useAccessProfileStore()
|
|
const accessProfileStore = useAccessProfileStore()
|
|
|
const { em } = useEntityManager()
|
|
const { em } = useEntityManager()
|
|
|
|
|
+const { mdAndUp } = useDisplay()
|
|
|
|
|
|
|
|
const toggle = ref(null)
|
|
const toggle = ref(null)
|
|
|
|
|
|
|
@@ -52,8 +53,6 @@ const historicalValue: Ref<Array<string>> = ref(historicalChoices.filter((item)
|
|
|
const onUpdate = async (newValue: Array<string>) => {
|
|
const onUpdate = async (newValue: Array<string>) => {
|
|
|
historicalValue.value = newValue
|
|
historicalValue.value = newValue
|
|
|
|
|
|
|
|
- console.log(historicalValue.value)
|
|
|
|
|
-
|
|
|
|
|
if (accessProfileStore.id === null) {
|
|
if (accessProfileStore.id === null) {
|
|
|
throw new Error('Invalid profile id')
|
|
throw new Error('Invalid profile id')
|
|
|
}
|
|
}
|