Fix linting errors
This commit is contained in:
parent
5ecb0f84cf
commit
0d00c6a2ec
|
@ -1,4 +1,3 @@
|
||||||
export const importShowMediaAltDialog = () => import(
|
export const importShowMediaAltDialog = () => import(
|
||||||
'../creators/showMediaAltDialog.js'
|
'../creators/showMediaAltDialog.js'
|
||||||
).then(mod => mod.default)
|
).then(mod => mod.default)
|
||||||
|
|
|
@ -217,7 +217,7 @@ export default {
|
||||||
formatIntl('intl.animatedImage', { description })
|
formatIntl('intl.animatedImage', { description })
|
||||||
),
|
),
|
||||||
altLabel: ({ index }) => (
|
altLabel: ({ index }) => (
|
||||||
formatIntl('intl.altMediaAriaLabel', { number : index + 1 })
|
formatIntl('intl.altMediaAriaLabel', { number: index + 1 })
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -232,8 +232,8 @@ export default {
|
||||||
handleAltClick (event) {
|
handleAltClick (event) {
|
||||||
(async () => {
|
(async () => {
|
||||||
const { mediaAttachments, index } = this.get()
|
const { mediaAttachments, index } = this.get()
|
||||||
const media = mediaAttachments[index];
|
const media = mediaAttachments[index]
|
||||||
const { description } = media;
|
const { description } = media
|
||||||
const showMediaAltDialog = await importShowMediaAltDialog()
|
const showMediaAltDialog = await importShowMediaAltDialog()
|
||||||
showMediaAltDialog(description)
|
showMediaAltDialog(description)
|
||||||
})()
|
})()
|
||||||
|
|
Loading…
Reference in New Issue