fix: only show demo notice if demo class is selected

This commit is contained in:
2025-07-12 02:11:46 +02:00
parent cfa1674421
commit df241f9a30

View File

@ -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>