use unshift instead of concat
This commit is contained in:
parent
4153090552
commit
950421b84c
|
@ -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 New Issue