Fix bug
This commit is contained in:
parent
bc737f9e57
commit
9125d39fac
1 changed files with 8 additions and 3 deletions
|
@ -70,6 +70,10 @@ export default Vue.extend({
|
||||||
't': this.focus
|
't': this.focus
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
meta() {
|
||||||
|
return this.$store.state.instance.meta;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -121,6 +125,7 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
async choose(ev) {
|
async choose(ev) {
|
||||||
|
if (this.meta == null) return;
|
||||||
this.menuOpened = true;
|
this.menuOpened = true;
|
||||||
const [antennas, lists] = await Promise.all([
|
const [antennas, lists] = await Promise.all([
|
||||||
this.$root.api('antennas/list'),
|
this.$root.api('antennas/list'),
|
||||||
|
@ -148,15 +153,15 @@ export default Vue.extend({
|
||||||
text: this.$t('_timelines.home'),
|
text: this.$t('_timelines.home'),
|
||||||
icon: faHome,
|
icon: faHome,
|
||||||
action: () => { this.setSrc('home') }
|
action: () => { this.setSrc('home') }
|
||||||
}, {
|
}, this.meta.disableLocalTimeline ? undefined : {
|
||||||
text: this.$t('_timelines.local'),
|
text: this.$t('_timelines.local'),
|
||||||
icon: faComments,
|
icon: faComments,
|
||||||
action: () => { this.setSrc('local') }
|
action: () => { this.setSrc('local') }
|
||||||
}, {
|
}, this.meta.disableLocalTimeline ? undefined : {
|
||||||
text: this.$t('_timelines.social'),
|
text: this.$t('_timelines.social'),
|
||||||
icon: faShareAlt,
|
icon: faShareAlt,
|
||||||
action: () => { this.setSrc('social') }
|
action: () => { this.setSrc('social') }
|
||||||
}, {
|
}, this.meta.disableGlobalTimeline ? undefined : {
|
||||||
text: this.$t('_timelines.global'),
|
text: this.$t('_timelines.global'),
|
||||||
icon: faGlobe,
|
icon: faGlobe,
|
||||||
action: () => { this.setSrc('global') }
|
action: () => { this.setSrc('global') }
|
||||||
|
|
Loading…
Reference in a new issue