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,
|
||||
changeDay,
|
||||
changeDate,
|
||||
activeProfile,
|
||||
} from "@/store";
|
||||
import { computed, ref } from "vue";
|
||||
|
||||
@ -50,7 +51,19 @@ const isDataView = computed(() => route.meta.dataView || false);
|
||||
v-show="isDataView"
|
||||
/>
|
||||
<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">
|
||||
<RouterView />
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user