biome format --write
This commit is contained in:
parent
8372348148
commit
9262e803ec
415 changed files with 54076 additions and 17419 deletions
|
|
@ -7,24 +7,24 @@ export const useMediaViewerStore = defineStore('mediaViewer', {
|
|||
state: () => ({
|
||||
media: [],
|
||||
currentIndex: 0,
|
||||
activated: false
|
||||
activated: false,
|
||||
}),
|
||||
actions: {
|
||||
setMedia (attachments) {
|
||||
const media = attachments.filter(attachment => {
|
||||
setMedia(attachments) {
|
||||
const media = attachments.filter((attachment) => {
|
||||
const type = fileTypeService.fileType(attachment.mimetype)
|
||||
return supportedTypes.has(type)
|
||||
})
|
||||
|
||||
this.media = media
|
||||
},
|
||||
setCurrentMedia (current) {
|
||||
setCurrentMedia(current) {
|
||||
const index = this.media.indexOf(current)
|
||||
this.activated = true
|
||||
this.currentIndex = index
|
||||
},
|
||||
closeMediaViewer () {
|
||||
closeMediaViewer() {
|
||||
this.activated = false
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue