Fix linting errors
This commit is contained in:
parent
5ecb0f84cf
commit
0d00c6a2ec
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
})()
|
||||
|
|
Loading…
Reference in New Issue