fix: only show demo notice if demo class is selected
This commit is contained in:
15
src/App.vue
15
src/App.vue
@ -13,6 +13,7 @@ import {
|
|||||||
selectedDay,
|
selectedDay,
|
||||||
changeDay,
|
changeDay,
|
||||||
changeDate,
|
changeDate,
|
||||||
|
activeProfile,
|
||||||
} from "@/store";
|
} from "@/store";
|
||||||
import { computed, ref } from "vue";
|
import { computed, ref } from "vue";
|
||||||
|
|
||||||
@ -50,7 +51,19 @@ const isDataView = computed(() => route.meta.dataView || false);
|
|||||||
v-show="isDataView"
|
v-show="isDataView"
|
||||||
/>
|
/>
|
||||||
<main>
|
<main>
|
||||||
<div class="demoNotice">{{ $t("demoNotice") }}</div>
|
<div>
|
||||||
|
<div
|
||||||
|
v-if="
|
||||||
|
activeProfile.classFilter == 'Demo' ||
|
||||||
|
$route.fullPath.startsWith('/settings')
|
||||||
|
"
|
||||||
|
class="demoNotice"
|
||||||
|
>
|
||||||
|
<span v-if="activeProfile.classFilter == 'Demo'">
|
||||||
|
{{ $t("demoNotice") }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<RouterView />
|
<RouterView />
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user