Move alertDialog to AppLayout fixes #33
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const alertStore = defineStore('alert', {
|
||||
state: () => {
|
||||
return {
|
||||
open: false,
|
||||
title: "",
|
||||
message: "",
|
||||
cancelText: "Abbrechen",
|
||||
onCancel: () => { },
|
||||
actionText: "Ok",
|
||||
actionVariant: "action" as "action" | "destructive",
|
||||
onAction: () => { }
|
||||
}
|
||||
},
|
||||
actions: {}
|
||||
})
|
||||
Reference in New Issue
Block a user