2026-02-18 03:06:14 +01:00
|
|
|
import {defineStore} from "pinia";
|
|
|
|
|
|
|
|
|
|
export const useModalStore = defineStore("ModalStore", {
|
2026-02-18 22:04:15 +01:00
|
|
|
state: () => ({ "type": "", "aspect":"", "isOpen":false, "bucket":"", "gallery":"", "vimeo_trackid":"", "pdfUrl":""}),
|
2026-02-18 03:06:14 +01:00
|
|
|
actions: {
|
2026-02-18 22:04:15 +01:00
|
|
|
setModalProps(type, aspect, isOpen, bucket, gallery, vimeo_trackid, pdfUrl = '') {
|
2026-02-18 03:06:14 +01:00
|
|
|
this.type = type
|
|
|
|
|
this.aspect = aspect
|
|
|
|
|
this.isOpen = isOpen
|
|
|
|
|
this.bucket = bucket
|
|
|
|
|
this.gallery = gallery
|
|
|
|
|
this.vimeo_trackid = vimeo_trackid
|
2026-02-18 22:04:15 +01:00
|
|
|
this.pdfUrl = pdfUrl
|
2026-02-18 03:06:14 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|