Skip to content

Commit

Permalink
Added pre-alpha warning (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhaufe authored Jun 10, 2024
1 parent 47d9dc4 commit 777c3bf
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app.vue
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>

0 comments on commit 777c3bf

Please sign in to comment.