From 3793efdaf2a39f0afaa3f44516940fc4cbc9db58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Mon, 8 Oct 2018 21:06:13 +0200 Subject: [PATCH] Improve loading indicator behaviour Show it on initial request for the entire box but if you click on the block button just rely on the block button's own loading behaviour. --- pages/auth/settings/blacklist.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/auth/settings/blacklist.vue b/pages/auth/settings/blacklist.vue index cf8f922d..069b7bde 100644 --- a/pages/auth/settings/blacklist.vue +++ b/pages/auth/settings/blacklist.vue @@ -32,13 +32,13 @@ import { mapGetters } from 'vuex' data() { return { blacklistedUsers: [], + isLoading: true } }, computed: { ...mapGetters({ loggedInUser: 'auth/user', - userSettings: 'feathers-vuex-usersettings/current', - isLoading: 'feathers-vuex-usersettings/isPending' + userSettings: 'feathers-vuex-usersettings/current' }) }, async mounted(){ @@ -50,6 +50,7 @@ import { mapGetters } from 'vuex' } }) this.blacklistedUsers = res.data + this.isLoading = false } };