fix: LTLやGTLが無効になっている場合でもUI上にタブが表示される問題を修正 (#8026)

* wip

* add changelog

* 変換ミス修正
This commit is contained in:
tamaina
2021-11-30 23:03:03 +09:00
committed by GitHub
parent 2fc58a780e
commit f3e29c4f6a
2 changed files with 4 additions and 3 deletions

View File

@ -66,7 +66,7 @@ export default defineComponent({
icon: 'fas fa-home',
iconOnly: true,
onClick: () => { this.src = 'home'; this.saveSrc(); },
}, {
}, ...(this.isLocalTimelineAvailable ? [{
active: this.src === 'local',
title: this.$ts._timelines.local,
icon: 'fas fa-comments',
@ -78,13 +78,13 @@ export default defineComponent({
icon: 'fas fa-share-alt',
iconOnly: true,
onClick: () => { this.src = 'social'; this.saveSrc(); },
}, {
}] : []), ...(this.isGlobalTimelineAvailable ? [{
active: this.src === 'global',
title: this.$ts._timelines.global,
icon: 'fas fa-globe',
iconOnly: true,
onClick: () => { this.src = 'global'; this.saveSrc(); },
}],
}] : [])],
})),
};
},