16 lines
571 B
JavaScript
16 lines
571 B
JavaScript
import {defineStore} from "pinia";
|
|
|
|
export const useModalStore = defineStore("ModalStore", {
|
|
state: () => ({ "type": "", "aspect":"", "isOpen":false, "bucket":"", "gallery":"", "vimeo_trackid":"", "pdfUrl":""}),
|
|
actions: {
|
|
setModalProps(type, aspect, isOpen, bucket, gallery, vimeo_trackid, pdfUrl = '') {
|
|
this.type = type
|
|
this.aspect = aspect
|
|
this.isOpen = isOpen
|
|
this.bucket = bucket
|
|
this.gallery = gallery
|
|
this.vimeo_trackid = vimeo_trackid
|
|
this.pdfUrl = pdfUrl
|
|
}
|
|
}
|
|
}) |