Fix linting errors

This commit is contained in:
Nick Colley 2023-03-13 21:04:48 +00:00
parent 5ecb0f84cf
commit 0d00c6a2ec
2 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,3 @@
export const importShowMediaAltDialog = () => import(
'../creators/showMediaAltDialog.js'
).then(mod => mod.default)
export const importShowMediaAltDialog = () => import(
'../creators/showMediaAltDialog.js'
).then(mod => mod.default)

View File

@ -217,7 +217,7 @@ export default {
formatIntl('intl.animatedImage', { description })
),
altLabel: ({ index }) => (
formatIntl('intl.altMediaAriaLabel', { number : index + 1 })
formatIntl('intl.altMediaAriaLabel', { number: index + 1 })
)
},
methods: {
@ -232,8 +232,8 @@ export default {
handleAltClick (event) {
(async () => {
const { mediaAttachments, index } = this.get()
const media = mediaAttachments[index];
const { description } = media;
const media = mediaAttachments[index]
const { description } = media
const showMediaAltDialog = await importShowMediaAltDialog()
showMediaAltDialog(description)
})()