Skip to content

Commit 3793efd

Browse files
committed
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.
1 parent 7990399 commit 3793efd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pages/auth/settings/blacklist.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ import { mapGetters } from 'vuex'
3232
data() {
3333
return {
3434
blacklistedUsers: [],
35+
isLoading: true
3536
}
3637
},
3738
computed: {
3839
...mapGetters({
3940
loggedInUser: 'auth/user',
40-
userSettings: 'feathers-vuex-usersettings/current',
41-
isLoading: 'feathers-vuex-usersettings/isPending'
41+
userSettings: 'feathers-vuex-usersettings/current'
4242
})
4343
},
4444
async mounted(){
@@ -50,6 +50,7 @@ import { mapGetters } from 'vuex'
5050
}
5151
})
5252
this.blacklistedUsers = res.data
53+
this.isLoading = false
5354
}
5455
};
5556
</script>

0 commit comments

Comments
 (0)