Archived
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:
1 parent
9439d14b59
commit
f688e3fb17
4 files changed
+100
-39
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user