Skip to content

Commit

Permalink
Update tooltip usage & discuss canUpload implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter committed May 19, 2021
1 parent fea7fe2 commit 6802202
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/web-app-files/src/components/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
<li v-if="$_reshareInformation" class="oc-py-rm">
<oc-tag
:id="$_resharerToggleId"
v-oc-tooltip="$gettext('Show resharer details')"
class="files-collaborators-collaborator-reshare-information"
type="button"
>
Expand Down Expand Up @@ -134,6 +133,7 @@
<li v-if="isIndirectShare" class="oc-py-rm">
<oc-tag
v-oc-tooltip="viaTooltip"
:aria-label="viaTooltip"
type="router-link"
class="files-collaborators-collaborator-follow-via"
:to="viaRouterParams"
Expand Down

0 comments on commit 6802202

Please sign in to comment.