diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2023-08-29 15:16:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 15:16:49 -0700 |
commit | 1c68bd2fc72492d1c5c7dbb8fddd88bf5d24c539 (patch) | |
tree | f06200bfcc0ff5dc62d369d3fe8a4f06da5d246c /apps/files | |
parent | 825b65e2efe958888380caebbfe8a7ec94b02943 (diff) | |
parent | 7b93438cf6509be61670433038e4b118c5fb6089 (diff) | |
download | nextcloud-server-1c68bd2fc72492d1c5c7dbb8fddd88bf5d24c539.tar.gz nextcloud-server-1c68bd2fc72492d1c5c7dbb8fddd88bf5d24c539.zip |
Merge pull request #40084 from nextcloud/deps/nextcloud/vue-8.0.0-beta.5
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/src/components/FileEntry.vue | 10 |
1 files changed, 9 insertions, 1 deletions
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"> <NcTextField ref="renameInput" - :aria-label="t('files', 'File name')" + :label="renameLabel" :autofocus="true" :minlength="1" :required="true" @@ -479,6 +479,14 @@ export default Vue.extend({ return this.source.attributes.favorite === 1 }, + renameLabel() { + const matchLabel: Record<FileType, string> = { + [FileType.File]: t('files', 'File name'), + [FileType.Folder]: t('files', 'Folder name'), + } + return matchLabel[this.source.type] + }, + isRenaming() { return this.renamingStore.renamingNode === this.source }, |