use unshift instead of concat

This commit is contained in:
ThatOneCalculator 2022-12-05 23:54:39 -08:00
parent 4153090552
commit 950421b84c
2 changed files with 6 additions and 6 deletions

View File

@ -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",

View File

@ -149,12 +149,12 @@ async function chooseList(ev: MouseEvent): Promise<void> {
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<void> {
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);
}