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:
@@ -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