mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
use unshift instead of concat
This commit is contained in:
parent
6c0b7d39ce
commit
6ee233b27f
2 changed files with 6 additions and 6 deletions
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue