From 298e78d417d7e4b271ab4fc9e0350b2f249e198c Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Mon, 23 Dec 2024 20:53:26 +0900 Subject: [PATCH 1/2] =?UTF-8?q?enhance(frontend):=20=E3=83=87=E3=83=83?= =?UTF-8?q?=E3=82=AD=E3=81=AETL=E3=82=B3=E3=83=A9=E3=83=A0=E3=81=A7?= =?UTF-8?q?=E3=81=AF=E3=81=AA=E3=81=BFTL=E3=82=92=E4=BD=BF=E3=81=88?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/ui/deck/tl-column.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/ui/deck/tl-column.vue b/packages/frontend/src/ui/deck/tl-column.vue index 69e1052db1e0..9a26f6fb5e80 100644 --- a/packages/frontend/src/ui/deck/tl-column.vue +++ b/packages/frontend/src/ui/deck/tl-column.vue @@ -44,6 +44,9 @@ import { instance } from '@/instance.js'; import { SoundStore } from '@/store.js'; import { soundSettingsButton } from '@/ui/deck/tl-note-notification.js'; import * as sound from '@/scripts/sound.js'; +import { signinRequired } from '@/account.js'; + +const $i = signinRequired(); const props = defineProps<{ column: Column; @@ -97,7 +100,9 @@ async function setType() { title: i18n.ts.timeline, items: [{ value: 'home' as const, text: i18n.ts._timelines.home, - }, { + }, ...($i.isInHanaMode ? [{ + value: 'hanami' as const, text: i18n.ts._timelines.hanami, + }] : []), { value: 'local' as const, text: i18n.ts._timelines.local, }, { value: 'social' as const, text: i18n.ts._timelines.social, From fc03fa19b12a4505a287a9387b85fe8418eeea26 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:06:41 +0900 Subject: [PATCH 2/2] fix condition --- packages/frontend/src/ui/deck/tl-column.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/ui/deck/tl-column.vue b/packages/frontend/src/ui/deck/tl-column.vue index 9a26f6fb5e80..257853e02c45 100644 --- a/packages/frontend/src/ui/deck/tl-column.vue +++ b/packages/frontend/src/ui/deck/tl-column.vue @@ -100,7 +100,7 @@ async function setType() { title: i18n.ts.timeline, items: [{ value: 'home' as const, text: i18n.ts._timelines.home, - }, ...($i.isInHanaMode ? [{ + }, ...($i.policies.hanamiTlAvailable ? [{ value: 'hanami' as const, text: i18n.ts._timelines.hanami, }] : []), { value: 'local' as const, text: i18n.ts._timelines.local,