mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
fix(files): Node loading information should be accessible
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>
This commit is contained in:
parent
15bfc63fa4
commit
f01c8efa38
1 changed files with 6 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue