modal implemented more efficiently now
parent
e432d9ac7e
commit
540e66a39b
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 15 KiB |
@ -0,0 +1,15 @@
|
||||
import {defineStore} from "pinia";
|
||||
|
||||
export const useModalStore = defineStore("ModalStore", {
|
||||
state: () => ({"type": "", "aspect":"", "isOpen":false, "bucket":"", "image_ids":"", "vimeo_trackid":""}),
|
||||
actions: {
|
||||
setModalProps(type, aspect, isOpen, bucket, image_ids, vimeo_trackid) {
|
||||
this.type = type
|
||||
this.aspect = aspect
|
||||
this.isOpen = isOpen
|
||||
this.bucket = bucket
|
||||
this.image_ids = image_ids
|
||||
this.vimeo_trackid = vimeo_trackid
|
||||
}
|
||||
}
|
||||
})
|
Loading…
Reference in New Issue