Skip to content

Commit

Permalink
Fix(frontend): LTL無効時にヘッダーにSTLが表示されてしまう & デフォルト、クラシックでリストが消えている (miss…
Browse files Browse the repository at this point in the history
…key-dev#14337)

* Fix condition of STL available

* Fix: condition of stl

* Listがタイムラインのヘッダーから消えている
  • Loading branch information
tai-cha authored Jul 31, 2024
1 parent 4b04b29 commit d6ba12e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/frontend/src/pages/timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ const headerTabs = computed(() => [...(defaultStore.reactiveState.pinnedUserList
icon: basicTimelineIconClass(tl),
iconOnly: true,
})), {
icon: 'ti ti-list',
title: i18n.ts.lists,
iconOnly: true,
onClick: chooseList,
}, {
icon: 'ti ti-antenna',
title: i18n.ts.antennas,
iconOnly: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/timelines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function isAvailableBasicTimeline(timeline: BasicTimelineType | undefined
case 'local':
return ($i == null && instance.policies.ltlAvailable) || ($i != null && $i.policies.ltlAvailable);
case 'social':
return $i != null && instance.policies.ltlAvailable;
return $i != null && $i.policies.ltlAvailable;
case 'global':
return ($i == null && instance.policies.gtlAvailable) || ($i != null && $i.policies.gtlAvailable);
default:
Expand Down

0 comments on commit d6ba12e

Please sign in to comment.