Skip to content

Commit

Permalink
Removed loading from sidebar, #721
Browse files Browse the repository at this point in the history
  • Loading branch information
eghrarish committed Jul 25, 2019
1 parent b0a44bd commit 6bae481
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,12 @@ export default {
},
async goToProjects () {
if (!this.$route.name.match('Projects')) {
this.setGlobalLoading(true)
await this.activateRelease({ release: null, updateRoute: false })
await this.activateProject({ project: this.selectedProject })
}
},
async goToNuggets () {
if (!this.nuggetsIsDisabled && !this.$route.name.match('Nuggets')) {
this.setGlobalLoading(true)
await this.activateRelease({ release: null, updateRoute: false })
await this.activateNugget({
nugget: this.selectedNuggets.length === 1 ? this.selectedNuggets[0] : null,
Expand All @@ -237,23 +235,20 @@ export default {
},
async goToUnread () {
if (!this.$route.name.match('Unread')) {
this.setGlobalLoading(true)
this.activateProject({ project: null, updateRoute: false })
await this.activateNugget({ nugget: null, updateRoute: false })
this.$router.push('/unread')
}
},
async goToAssigned () {
if (!this.$route.path.match('assigned')) {
this.setGlobalLoading(true)
this.activateProject({ project: null, updateRoute: false })
await this.activateNugget({ nugget: null, updateRoute: false })
this.$router.push('/assigned')
}
},
async goToSubscribed () {
if (!this.$route.name.match('Subscribed')) {
this.setGlobalLoading(true)
this.activateProject({ project: null, updateRoute: false })
await this.activateNugget({ nugget: null, updateRoute: false })
this.$router.push('/subscribed')
Expand All @@ -266,23 +261,18 @@ export default {
}
},
goToGoodNews () {
this.setGlobalLoading(true)
if (!this.$route.path.match('good-news')) {
this.$router.push('/good-news')
}
this.setGlobalLoading(false)
},
goToBadNews () {
this.setGlobalLoading(true)
if (!this.$route.path.match('bad-news')) {
this.$router.push('/bad-news')
}
this.setGlobalLoading(false)
},
...mapMutations([
'updateUnreadCallbackAttachment',
'setUnreadNuggets',
'setGlobalLoading'
'setUnreadNuggets'
]),
...mapActions([
'activateProject',
Expand Down

0 comments on commit 6bae481

Please sign in to comment.