-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,29 @@ | ||
<script lang="ts" setup> | ||
const preAlphaDialogVisible = ref( | ||
JSON.parse(localStorage.getItem('preAlphaDialogVisible') || 'true') | ||
); | ||
const onAlphaDialogClose = () => { | ||
preAlphaDialogVisible.value = false; | ||
// save the setting to local storage | ||
localStorage.setItem('preAlphaDialogVisible', 'false'); | ||
}; | ||
</script> | ||
|
||
<template> | ||
<NuxtPwaManifest /> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
|
||
<Dialog v-model:visible="preAlphaDialogVisible" modal header="Warning" class="w-30rem" :show-close="false"> | ||
<p> | ||
This is a pre-alpha version of the application. It is not yet ready for production use. | ||
By continuing to use this application, you accept the risks associated with using pre-alpha software. | ||
The application may be unstable, and data loss may occur. | ||
</p> | ||
|
||
<Button type="button" label="Okay" @click="onAlphaDialogClose"></Button> | ||
</Dialog> | ||
</template> |