17 lines
427 B
TypeScript
17 lines
427 B
TypeScript
|
|
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: {}
|
||
|
|
})
|