summaryrefslogtreecommitdiffstats
path: root/settings/src/views
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-05-29 16:58:22 +0200
committerJulius Härtl <jus@bitgrid.net>2018-06-06 11:40:09 +0200
commit7c639a5399599cb731ce55d60487211568fcd6ee (patch)
tree64ad4c21d8b2db681fcfce5fcaf65e0f032b15b8 /settings/src/views
parent8b919ecdc4624d13423f6fd6bb00a48bf3f48c62 (diff)
downloadnextcloud-server-7c639a5399599cb731ce55d60487211568fcd6ee.tar.gz
nextcloud-server-7c639a5399599cb731ce55d60487211568fcd6ee.zip
Implement loading indicators
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings/src/views')
-rw-r--r--settings/src/views/Apps.vue12
1 files changed, 7 insertions, 5 deletions
diff --git a/settings/src/views/Apps.vue b/settings/src/views/Apps.vue
index d59a62ee22c..54a83444a2e 100644
--- a/settings/src/views/Apps.vue
+++ b/settings/src/views/Apps.vue
@@ -69,6 +69,7 @@ export default {
this.$store.dispatch('getCategories');
this.$store.dispatch('getApps', {category: this.category});
this.$store.dispatch('getAllApps');
+ this.$store.dispatch('getGroups');
this.$store.commit('setUpdateCount', this.$store.getters.getServerData.updateCount)
console.log(this.$store.getters.getServerData.updateCount);
},
@@ -93,6 +94,9 @@ export default {
}
},
computed: {
+ loading() {
+ return this.$store.getters.loading('categories');
+ },
currentApp() {
return this.apps.find(app => app.id === this.id );
},
@@ -102,9 +106,6 @@ export default {
apps() {
return this.$store.getters.getApps;
},
- loading() {
- return Object.keys(this.apps).length === 0;
- },
updateCount() {
return this.$store.getters.getUpdateCount;
},
@@ -161,7 +162,7 @@ export default {
if (!this.settings.appstoreEnabled) {
return {
id: 'appscategories',
- items: defaultCategories
+ items: defaultCategories,
}
}
@@ -204,7 +205,8 @@ export default {
// Return
return {
id: 'appscategories',
- items: categories
+ items: categories,
+ loading: this.loading
}
},
}