Startup dialog on first run

This commit is contained in:
2024-11-06 16:45:36 +01:00
parent b892d93379
commit 33880069a0
4 changed files with 49 additions and 3 deletions

View File

@@ -9,6 +9,8 @@ import { useFeedbackStore } from './stores/feedback.store';
import companyFooter from './components/navigation/companyFooter.vue';
import urlBar from './components/navigation/urlBar.vue';
import { useRouter } from 'vue-router';
import actionDialog from './components/basics/actionDialog.vue';
import CircularProgressIndeterminate from './components/basics/circularProgressIndeterminate.vue';
const preferencesStore = usePreferencesStore()
const feedbackStore = useFeedbackStore()
@@ -18,6 +20,12 @@ const router = useRouter()
theme.global.name.value = preferencesStore.theme
// First startup
if (preferencesStore.firstStartup) {
preferencesStore.firstStartupRoutine()
}
// Global watcher
watch(() => preferencesStore.language, () => {
i18n.global.locale = preferencesStore.language
@@ -84,4 +92,23 @@ watch(() => feedbackStore.notFound, () => {
<company-footer />
</v-main>
</v-app>
<action-dialog
v-model="preferencesStore.firstStartup"
:title="$t('misc.firstStartup.title')"
persistent
max-width="600"
>
<v-row>
<v-col>
{{ $t('misc.firstStartup.description') }}
</v-col>
</v-row>
<v-row>
<v-col class="text-center pa-8">
<circular-progress-indeterminate />
</v-col>
</v-row>
</action-dialog>
</template>