From 62e1f4b090c88d1e41349e2d59062b2199cdce08 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 427ca5792ee..bf207252292 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 a8138d6ac82..a47d5d88ea3 100644 --- a/packages/web-app-files/src/components/Collaborators/Collaborator.vue +++ b/packages/web-app-files/src/components/Collaborators/Collaborator.vue @@ -61,7 +61,6 @@
@@ -122,6 +121,7 @@