2023-06-12 18:00:37 +02:00
|
|
|
import {defineStore} from "pinia";
|
|
|
|
|
|
|
|
|
|
export const useModalStore = defineStore("ModalStore", {
|
2023-06-14 19:35:23 +02:00
|
|
|
state: () => ({"type": "", "aspect":"", "isOpen":false, "bucket":"", "gallery":"", "vimeo_trackid":""}),
|
2023-06-12 18:00:37 +02:00
|
|
|
actions: {
|
2023-06-14 19:35:23 +02:00
|
|
|
setModalProps(type, aspect, isOpen, bucket, gallery, vimeo_trackid) {
|
2023-06-12 18:00:37 +02:00
|
|
|
this.type = type
|
|
|
|
|
this.aspect = aspect
|
|
|
|
|
this.isOpen = isOpen
|
|
|
|
|
this.bucket = bucket
|
2023-06-14 19:35:23 +02:00
|
|
|
this.gallery = gallery
|
2023-06-12 18:00:37 +02:00
|
|
|
this.vimeo_trackid = vimeo_trackid
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|