use unshift instead of concat
This commit is contained in:
parent
4153090552
commit
950421b84c
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.119.0-calc.19-b8",
|
"version": "12.119.0-calc.19-b9",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -149,12 +149,12 @@ async function chooseList(ev: MouseEvent): Promise<void> {
|
||||||
text: list.name,
|
text: list.name,
|
||||||
icon: '',
|
icon: '',
|
||||||
to: `/timeline/list/${list.id}`,
|
to: `/timeline/list/${list.id}`,
|
||||||
})).concat([{
|
})).unshift({
|
||||||
type: 'link' as const,
|
type: 'link' as const,
|
||||||
text: i18n.ts.manageLists,
|
text: i18n.ts.manageLists,
|
||||||
icon: 'ph-faders-horizontal-bold ph-lg',
|
icon: 'ph-faders-horizontal-bold ph-lg',
|
||||||
to: '/my/lists',
|
to: '/my/lists',
|
||||||
}]);
|
});
|
||||||
os.popupMenu(items, ev.currentTarget ?? ev.target);
|
os.popupMenu(items, ev.currentTarget ?? ev.target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,13 +166,13 @@ async function chooseAntenna(ev: MouseEvent): Promise<void> {
|
||||||
icon: '',
|
icon: '',
|
||||||
indicate: antenna.hasUnreadNote,
|
indicate: antenna.hasUnreadNote,
|
||||||
to: `/timeline/antenna/${antenna.id}`,
|
to: `/timeline/antenna/${antenna.id}`,
|
||||||
})).concat([{
|
})).unshift({
|
||||||
type: 'link' as const,
|
type: 'link' as const,
|
||||||
indicate: false,
|
indicate: false,
|
||||||
text: i18n.ts.manageLists,
|
text: i18n.ts.manageAntennas,
|
||||||
icon: 'ph-faders-horizontal-bold ph-lg',
|
icon: 'ph-faders-horizontal-bold ph-lg',
|
||||||
to: '/my/antennas',
|
to: '/my/antennas',
|
||||||
}]);
|
});
|
||||||
os.popupMenu(items, ev.currentTarget ?? ev.target);
|
os.popupMenu(items, ev.currentTarget ?? ev.target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue