We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51af5ab commit 86f90abCopy full SHA for 86f90ab
1 file changed
src/components/Images.vue
@@ -28,6 +28,7 @@
28
@close="onClose" />
29
30
<img v-else
31
+ :alt="alt"
32
:class="{
33
dragging,
34
loaded,
@@ -51,6 +52,7 @@ import axios from '@nextcloud/axios'
51
52
import Vue from 'vue'
53
import AsyncComputed from 'vue-async-computed'
54
import ImageEditor from './ImageEditor.vue'
55
+import { basename } from '@nextcloud/paths'
56
57
Vue.use(AsyncComputed)
58
@@ -90,6 +92,10 @@ export default {
90
92
zoomWidth() {
91
93
return Math.round(this.width * this.zoomRatio)
94
},
95
+ alt() {
96
+ const fileName = basename(this.src)
97
+ return t('viewer', `Content of '${fileName}'`)
98
+ },
99
100
101
asyncComputed: {
0 commit comments