From 68022029a982b2ad4a3966a0aeba3d4b29362e20 Mon Sep 17 00:00:00 2001 From: Pascal Wengerter Date: Fri, 7 May 2021 09:06:29 +0100 Subject: [PATCH] Update tooltip usage & discuss canUpload implementation --- packages/web-app-files/src/components/AppBar.vue | 3 +++ .../src/components/Collaborators/Collaborator.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/web-app-files/src/components/AppBar.vue b/packages/web-app-files/src/components/AppBar.vue index 5464776969c..d542c7c1c36 100644 --- a/packages/web-app-files/src/components/AppBar.vue +++ b/packages/web-app-files/src/components/AppBar.vue @@ -28,6 +28,7 @@ id="new-file-menu-btn" key="new-file-menu-btn-enabled" v-oc-tooltip="_cannotCreateDialogText" + :aria-label="_cannotCreateDialogText" variation="primary" appearance="filled" :disabled="isNewBtnDisabled" @@ -182,6 +183,8 @@ export default { } }, canUpload() { + // return this.currentFolder.permissions.indexOf('C') >= 0 + // borrowed from packages/web-app-files/src/helpers/resources.js if (this.currentFolder === null) { return false } diff --git a/packages/web-app-files/src/components/Collaborators/Collaborator.vue b/packages/web-app-files/src/components/Collaborators/Collaborator.vue index dfa80576608..f5f614c2793 100644 --- a/packages/web-app-files/src/components/Collaborators/Collaborator.vue +++ b/packages/web-app-files/src/components/Collaborators/Collaborator.vue @@ -66,7 +66,6 @@
  • @@ -134,6 +133,7 @@