Through reload if the function is not implemented

This commit is contained in:
AkiraFukushima 2018-06-27 22:53:30 +09:00
parent 9a59093ba7
commit c4a0380005
1 changed files with 14 additions and 1 deletions

View File

@ -76,7 +76,20 @@ export default {
this.$store.dispatch('TimelineSpace/Modals/NewToot/openModal')
},
reload () {
this.$store.commit('TimelineSpace/HeaderMenu/changeReload', true)
switch (this.title) {
case 'Home':
case 'Notification':
case 'Favourite':
case 'Local timeline':
case 'Public timeline':
case 'Hashtag':
case `#${this.$route.params.tag}`:
case 'Lists':
this.$store.commit('TimelineSpace/HeaderMenu/changeReload', true)
break
default:
console.log('Not impletemented')
}
}
}
}