forked from Ivasoft/geovisio-website
18 lines
375 B
TypeScript
18 lines
375 B
TypeScript
import { defineStore } from 'pinia'
|
|
|
|
export const useSequenceStore = defineStore('sequence', {
|
|
state: () => ({
|
|
toastText: <string>'',
|
|
toastLook: <string>''
|
|
}),
|
|
actions: {
|
|
addToastText(text: string, look: string): void {
|
|
this.toastText = text
|
|
this.toastLook = look
|
|
setTimeout(() => {
|
|
this.toastText = ''
|
|
}, 3000)
|
|
}
|
|
}
|
|
})
|