From 950421b84cf582749f99db1a2d292657e96e7187 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 5 Dec 2022 23:54:39 -0800 Subject: [PATCH] use unshift instead of concat --- package.json | 2 +- packages/client/src/pages/timeline.vue | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 8ac74cc91e..3d564400c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.19-b8", + "version": "12.119.0-calc.19-b9", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index cb786ef23a..bfbaada9c7 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -149,12 +149,12 @@ async function chooseList(ev: MouseEvent): Promise { text: list.name, icon: '', to: `/timeline/list/${list.id}`, - })).concat([{ + })).unshift({ type: 'link' as const, text: i18n.ts.manageLists, icon: 'ph-faders-horizontal-bold ph-lg', to: '/my/lists', - }]); + }); os.popupMenu(items, ev.currentTarget ?? ev.target); } @@ -166,13 +166,13 @@ async function chooseAntenna(ev: MouseEvent): Promise { icon: '', indicate: antenna.hasUnreadNote, to: `/timeline/antenna/${antenna.id}`, - })).concat([{ + })).unshift({ type: 'link' as const, indicate: false, - text: i18n.ts.manageLists, + text: i18n.ts.manageAntennas, icon: 'ph-faders-horizontal-bold ph-lg', to: '/my/antennas', - }]); + }); os.popupMenu(items, ev.currentTarget ?? ev.target); }