From e9fd37507f6fe4cb60368b8a3de926ba4ea6c0ab Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Mon, 28 Aug 2023 12:35:37 -0700 Subject: [PATCH] enh(a11y): Always visible file rename label Signed-off-by: Christopher Ng --- apps/files/src/components/FileEntry.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue index 9471e596f1d..216d6bf2cd5 100644 --- a/apps/files/src/components/FileEntry.vue +++ b/apps/files/src/components/FileEntry.vue @@ -70,7 +70,7 @@ class="files-list__row-rename" @submit.prevent.stop="onRename"> = { + [FileType.File]: t('files', 'File name'), + [FileType.Folder]: t('files', 'Folder name'), + } + return matchLabel[this.source.type] + }, + isRenaming() { return this.renamingStore.renamingNode === this.source }, -- 2.39.5