Skip to content

Commit

Permalink
Merge pull request #3677 from owncloud/feature/no-dragndrop-if-upload…
Browse files Browse the repository at this point in the history
…-not-allowed
  • Loading branch information
Lukas Hirt committed Jul 7, 2020
2 parents 136a3a2 + 3e202e2 commit affc306
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/files/src/components/FilesAppBar.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div id="files-app-bar" class="oc-app-bar">
<file-drop
v-if="!isIE11()"
v-if="!isIE11() && canUpload && hasFreeSpace"
:root-path="item"
:path="currentPath"
:headers="headers"
Expand Down Expand Up @@ -279,8 +279,10 @@ export default {
hasFreeSpace() {
return (
(this.quota && this.quota.free > 0) ||
(this.currentFolder && this.currentFolder.permissions.indexOf('M') >= 0) ||
(this.quota && this.quota.free) > 0 ||
(this.currentFolder &&
this.currentFolder.permissions &&
this.currentFolder.permissions.indexOf('M') >= 0) ||
this.publicPage()
)
},
Expand Down
4 changes: 4 additions & 0 deletions changelog/unreleased/no-dragndrop-if-upload-not-allowed
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Change: No file drop if upload is not allowed or no space is left


https://github.com/owncloud/phoenix/pull/3677

0 comments on commit affc306

Please sign in to comment.