From 528b2be5b349b36f78d6ca29b8da9c6fe99c6663 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 26 Jul 2022 14:29:52 -0700 Subject: [PATCH] Misc timeline actions as headerActions --- package.json | 2 +- packages/client/src/pages/timeline.vue | 39 +++++++++++++++----------- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 2c081d62be..043ad1846c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "misskey", - "version": "12.118.0-calc.5.b4", + "version": "12.118.0-calc.6.b4", "codename": "indigo", "repository": { "type": "git", diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 8829b2dd78..0b2b424812 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -111,7 +111,27 @@ function focus(): void { tlComponent.focus(); } -const headerActions = $computed(() => []); +const headerActions = $computed(() => [{ + icon: 'fas fa-list-ul', + title: i18n.ts.lists, + iconOnly: true, + onClick: chooseList, +}, { + icon: 'fas fa-satellite', + title: i18n.ts.antennas, + iconOnly: true, + onClick: chooseAntenna, +}, { + icon: 'fas fa-satellite-dish', + title: i18n.ts.channel, + iconOnly: true, + onClick: chooseChannel, +}, { + icon: 'fas fa-calendar-alt', + title: i18n.ts.jumpToSpecifiedDate, + iconOnly: true, + onClick: timetravel, +}]); const headerTabs = $computed(() => [{ key: 'home', @@ -133,22 +153,7 @@ const headerTabs = $computed(() => [{ title: i18n.ts._timelines.global, icon: 'fas fa-globe', iconOnly: true, -}] : []), { - icon: 'fas fa-list-ul', - title: i18n.ts.lists, - iconOnly: true, - onClick: chooseList, -}, { - icon: 'fas fa-satellite', - title: i18n.ts.antennas, - iconOnly: true, - onClick: chooseAntenna, -}, { - icon: 'fas fa-satellite-dish', - title: i18n.ts.channel, - iconOnly: true, - onClick: chooseChannel, -}]); +}] : [])]); const headerTabsWhenNotLogin = $computed(() => [ ...(isLocalTimelineAvailable ? [{