Skip to content

Commit

Permalink
Merge pull request #2652 from owncloud/bugfix/hide-quota-bar-in-exter…
Browse files Browse the repository at this point in the history
…nal-storage

Hide quota on external storage
  • Loading branch information
Vincent Petry authored Dec 10, 2019
2 parents e42c97e + 2f3dd1b commit 5f58d4d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions apps/files/src/components/AllFilesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
‐ {{ filesTotalSize | fileSize }}
</template>
</div>
<div v-if="!publicPage()" class="uk-visible@s uk-width-2-3 uk-width-1-2@xl uk-text-meta uk-flex" :class="{ 'uk-visible@xl' : _sidebarOpen }">
<div v-if="quotaVisible" class="uk-visible@s uk-width-2-3 uk-width-1-2@xl uk-text-meta uk-flex" :class="{ 'uk-visible@xl' : _sidebarOpen }">
<span class="uk-margin-small-right">
<translate>Used space:</translate> {{ quota.used | fileSize }}
<template v-if="quota.definition !== 'default' && quota.definition !== 'none'">
Expand Down Expand Up @@ -158,11 +158,19 @@ export default {
},
computed: {
...mapState(['route']),
...mapGetters('Files', ['loadingFolder', 'activeFiles', 'quota', 'filesTotalSize', 'activeFilesCount']),
...mapGetters('Files', ['loadingFolder', 'activeFiles', 'quota', 'filesTotalSize', 'activeFilesCount', 'currentFolder']),
...mapGetters(['configuration']),
item () {
return this.$route.params.item
},
quotaVisible () {
return (
!this.publicPage() &&
this.currentFolder &&
!this.currentFolder.isMounted()
)
}
},
watch: {
Expand Down

0 comments on commit 5f58d4d

Please sign in to comment.