diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-20 23:02:55 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-20 23:02:55 +0900 |
| commit | 238cb0077f74ad44e7ac92309ed0cce7035212ad (patch) | |
| tree | fc0520c68505d0a31edfbbf82e8f67fb3240d33e /src | |
| parent | Fix #6036 (diff) | |
| download | sharkey-238cb0077f74ad44e7ac92309ed0cce7035212ad.tar.gz sharkey-238cb0077f74ad44e7ac92309ed0cce7035212ad.tar.bz2 sharkey-238cb0077f74ad44e7ac92309ed0cce7035212ad.zip | |
Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/pages/index.home.vue | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/client/pages/index.home.vue b/src/client/pages/index.home.vue index 1497e8dbd7..805014aee9 100644 --- a/src/client/pages/index.home.vue +++ b/src/client/pages/index.home.vue @@ -70,6 +70,10 @@ export default Vue.extend({ 't': this.focus }; }, + + meta() { + return this.$store.state.instance.meta; + }, }, watch: { @@ -121,6 +125,7 @@ export default Vue.extend({ }, async choose(ev) { + if (this.meta == null) return; this.menuOpened = true; const [antennas, lists] = await Promise.all([ this.$root.api('antennas/list'), @@ -148,15 +153,15 @@ export default Vue.extend({ text: this.$t('_timelines.home'), icon: faHome, action: () => { this.setSrc('home') } - }, { + }, this.meta.disableLocalTimeline ? undefined : { text: this.$t('_timelines.local'), icon: faComments, action: () => { this.setSrc('local') } - }, { + }, this.meta.disableLocalTimeline ? undefined : { text: this.$t('_timelines.social'), icon: faShareAlt, action: () => { this.setSrc('social') } - }, { + }, this.meta.disableGlobalTimeline ? undefined : { text: this.$t('_timelines.global'), icon: faGlobe, action: () => { this.setSrc('global') } |