v1.7 beta.7

This commit is contained in:
carodej
2020-07-18 16:25:29 +02:00
parent 6c96fe2f46
commit 35543e6f06
8 changed files with 15 additions and 25 deletions

View File

@@ -38,8 +38,7 @@
/>
</div>
<div class="toolbar-button-wrapper"
v-if="$checkPermission(['master', 'editor'])">
<div class="toolbar-button-wrapper" v-if="$checkPermission(['master', 'editor'])">
<ToolbarButton
source="move"
:class="{'is-inactive': canMoveInView}"
@@ -111,10 +110,15 @@
]),
hasCapacity() {
if (! this.$store.getters.config.storageLimit) {
// Check if set storage limitation
if (! this.$store.getters.config.storageLimit)
return true
}
// Check if is loaded user
if (! this.$store.getters.user )
return true
// Check if user has storage
return this.$store.getters.user.relationships.storage.data.attributes.used <= 100
},
directoryName() {