Fix(frontend): LTL無効時にヘッダーにSTLが表示されてしまう & デフォルト、クラシックでリストが消えている (#14337)

* Fix condition of STL available

* Fix: condition of stl

* Listがタイムラインのヘッダーから消えている
This commit is contained in:
taichan 2024-07-31 18:10:36 +09:00 committed by GitHub
parent 4b04b2989b
commit d6ba12e24c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -287,6 +287,11 @@ const headerTabs = computed(() => [...(defaultStore.reactiveState.pinnedUserList
icon: basicTimelineIconClass(tl), icon: basicTimelineIconClass(tl),
iconOnly: true, iconOnly: true,
})), { })), {
icon: 'ti ti-list',
title: i18n.ts.lists,
iconOnly: true,
onClick: chooseList,
}, {
icon: 'ti ti-antenna', icon: 'ti ti-antenna',
title: i18n.ts.antennas, title: i18n.ts.antennas,
iconOnly: true, iconOnly: true,

View file

@ -39,7 +39,7 @@ export function isAvailableBasicTimeline(timeline: BasicTimelineType | undefined
case 'local': case 'local':
return ($i == null && instance.policies.ltlAvailable) || ($i != null && $i.policies.ltlAvailable); return ($i == null && instance.policies.ltlAvailable) || ($i != null && $i.policies.ltlAvailable);
case 'social': case 'social':
return $i != null && instance.policies.ltlAvailable; return $i != null && $i.policies.ltlAvailable;
case 'global': case 'global':
return ($i == null && instance.policies.gtlAvailable) || ($i != null && $i.policies.gtlAvailable); return ($i == null && instance.policies.gtlAvailable) || ($i != null && $i.policies.gtlAvailable);
default: default: