spotlight desktop UI

This commit is contained in:
Peter Papp
2021-08-10 08:16:34 +02:00
parent 98691dcdd4
commit f78cedbc0c
7 changed files with 585 additions and 11 deletions
@@ -27,6 +27,24 @@ export default {
MenuMobile,
Option,
},
computed: {
canUploadInView() {
return !this.$isThisLocation(['base', 'public'])
},
hasCapacity() {
// Check if storage limitation is set
if (!this.$store.getters.config.storageLimit) return true
// Check if user is loaded
if (!this.$store.getters.user) return true
// Check if user has storage
return this.$store.getters.user.data.attributes.storage.used <= 100
},
canCreateFolderInView() {
return !this.$isThisLocation(['base', 'public'])
},
},
methods: {
createFolder() {
events.$emit('popup:open', {name: 'create-folder'})