Add confirm dialog to reminder button.

Add a show function in alertStore so we can use alerts in a defined way everywhere.
#12 #33
This commit is contained in:
2025-10-30 10:15:02 +01:00
parent 4701efddd8
commit 058f7af9f6
4 changed files with 100 additions and 39 deletions
+3 -5
View File
@@ -70,13 +70,11 @@ onMounted(() => {
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>{{ alert.title }}</AlertDialogTitle>
<AlertDialogDescription>{{ alert.message }}</AlertDialogDescription>
<AlertDialogDescription v-if="alert.message">{{ alert.message }}</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<Button v-if="alert.onCancel" @click="alert.onCancel">{{ alert.cancelText }}</Button>
<Button :variant="alert.actionVariant" v-if="alert.onAction" @click="alert.onAction">{{
alert.actionText
}}</Button>
<Button @click="alert.cancel">{{ alert.cancelText }}</Button>
<Button :variant="alert.actionVariant" @click="alert.action">{{ alert.actionText }}</Button>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>