]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files): Node loading information should be accessible
authorFerdinand Thiessen <opensource@fthiessen.de>
Thu, 22 Aug 2024 23:22:33 +0000 (01:22 +0200)
committerFerdinand Thiessen <opensource@fthiessen.de>
Sat, 31 Aug 2024 16:39:16 +0000 (18:39 +0200)
The loading icon visually informs that the node is currently loading,
but there is no non-visual information (accessible information).

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/files/src/components/FileEntry/FileEntryCheckbox.vue

index 059e2f89f5f706239c1044f8521c9d61c0c927a4..f2ab39d752515d10c3fd8e3a57184a1734b84168 100644 (file)
@@ -5,7 +5,7 @@
 <template>
        <td class="files-list__row-checkbox"
                @keyup.esc.exact="resetSelection">
-               <NcLoadingIcon v-if="isLoading" />
+               <NcLoadingIcon v-if="isLoading" :name="loadingLabel" />
                <NcCheckboxRadioSwitch v-else
                        :aria-label="ariaLabel"
                        :checked="isSelected"
@@ -83,6 +83,11 @@ export default defineComponent({
                                ? t('files', 'Toggle selection for file "{displayName}"', { displayName: this.source.basename })
                                : t('files', 'Toggle selection for folder "{displayName}"', { displayName: this.source.basename })
                },
+               loadingLabel() {
+                       return this.isFile
+                               ? t('files', 'File is loading')
+                               : t('files', 'Folder is loading')
+               },
        },
 
        methods: {