mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-01 07:35:57 +09:00
LTL / GTLが無効でもボタンが表示されるのを修正
This commit is contained in:
parent
bb25ece745
commit
eaf83bffb0
@ -49,47 +49,63 @@ export default defineComponent({
|
|||||||
menuOpened: false,
|
menuOpened: false,
|
||||||
queue: 0,
|
queue: 0,
|
||||||
width: 0,
|
width: 0,
|
||||||
INFO: {
|
INFO: computed(() => {
|
||||||
header: [{
|
const header = [{
|
||||||
id: 'home',
|
id: 'home',
|
||||||
title: null,
|
title: null,
|
||||||
tooltip: this.$t('_timelines.home'),
|
tooltip: this.$t('_timelines.home'),
|
||||||
icon: faHome,
|
icon: faHome,
|
||||||
onClick: () => { this.src = 'home'; this.saveSrc(); },
|
onClick: () => { this.src = 'home'; this.saveSrc(); },
|
||||||
selected: computed(() => this.src === 'home')
|
selected: computed(() => this.src === 'home')
|
||||||
}, {
|
}];
|
||||||
|
|
||||||
|
if (!this.$store.state.instance.meta.disableLocalTimeline || this.$store.state.i.isModerator || this.$store.state.i.isAdmin) {
|
||||||
|
header.push({
|
||||||
id: 'local',
|
id: 'local',
|
||||||
title: null,
|
title: null,
|
||||||
tooltip: this.$t('_timelines.local'),
|
tooltip: this.$t('_timelines.local'),
|
||||||
icon: faComments,
|
icon: faComments,
|
||||||
onClick: () => { this.src = 'local'; this.saveSrc(); },
|
onClick: () => { this.src = 'local'; this.saveSrc(); },
|
||||||
selected: computed(() => this.src === 'local')
|
selected: computed(() => this.src === 'local')
|
||||||
}, {
|
});
|
||||||
|
|
||||||
|
header.push({
|
||||||
id: 'social',
|
id: 'social',
|
||||||
title: null,
|
title: null,
|
||||||
tooltip: this.$t('_timelines.social'),
|
tooltip: this.$t('_timelines.social'),
|
||||||
icon: faShareAlt,
|
icon: faShareAlt,
|
||||||
onClick: () => { this.src = 'social'; this.saveSrc(); },
|
onClick: () => { this.src = 'social'; this.saveSrc(); },
|
||||||
selected: computed(() => this.src === 'social')
|
selected: computed(() => this.src === 'social')
|
||||||
}, {
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.$store.state.instance.meta.disableGlobalTimeline || this.$store.state.i.isModerator || this.$store.state.i.isAdmin) {
|
||||||
|
header.push({
|
||||||
id: 'global',
|
id: 'global',
|
||||||
title: null,
|
title: null,
|
||||||
tooltip: this.$t('_timelines.global'),
|
tooltip: this.$t('_timelines.global'),
|
||||||
icon: faGlobe,
|
icon: faGlobe,
|
||||||
onClick: () => { this.src = 'global'; this.saveSrc(); },
|
onClick: () => { this.src = 'global'; this.saveSrc(); },
|
||||||
selected: computed(() => this.src === 'global')
|
selected: computed(() => this.src === 'global')
|
||||||
}, {
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
header.push({
|
||||||
id: 'other',
|
id: 'other',
|
||||||
title: null,
|
title: null,
|
||||||
icon: faEllipsisH,
|
icon: faEllipsisH,
|
||||||
onClick: this.choose,
|
onClick: this.choose,
|
||||||
indicate: computed(() => this.$store.state.i.hasUnreadAntenna || this.$store.state.i.hasUnreadChannel)
|
indicate: computed(() => this.$store.state.i.hasUnreadAntenna || this.$store.state.i.hasUnreadChannel)
|
||||||
}],
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
header,
|
||||||
action: {
|
action: {
|
||||||
icon: faPencilAlt,
|
icon: faPencilAlt,
|
||||||
handler: () => os.post()
|
handler: () => os.post()
|
||||||
}
|
}
|
||||||
},
|
};
|
||||||
|
}),
|
||||||
faAngleDown, faAngleUp, faHome, faShareAlt, faGlobe, faComments, faListUl, faSatellite, faSatelliteDish, faCircle
|
faAngleDown, faAngleUp, faHome, faShareAlt, faGlobe, faComments, faListUl, faSatellite, faSatelliteDish, faCircle
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user