Skip to content

Commit

Permalink
Improve loading indicator behaviour
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
roschaefer committed Oct 8, 2018
1 parent 7990399 commit 3793efd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/auth/settings/blacklist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand All @@ -50,6 +50,7 @@ import { mapGetters } from 'vuex'
}
})
this.blacklistedUsers = res.data
this.isLoading = false
}
};
</script>
Expand Down

0 comments on commit 3793efd

Please sign in to comment.