This commit is contained in:
parent
950421b84c
commit
266229daec
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "calckey",
|
||||
"version": "12.119.0-calc.19-b9",
|
||||
"version": "12.119.0-calc.19-b10",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -144,17 +144,17 @@ function top(): void {
|
|||
|
||||
async function chooseList(ev: MouseEvent): Promise<void> {
|
||||
const lists = await os.api('users/lists/list');
|
||||
const items = lists.map((list) => ({
|
||||
type: 'link' as const,
|
||||
text: list.name,
|
||||
icon: '',
|
||||
to: `/timeline/list/${list.id}`,
|
||||
})).unshift({
|
||||
const items = [{
|
||||
type: 'link' as const,
|
||||
text: i18n.ts.manageLists,
|
||||
icon: 'ph-faders-horizontal-bold ph-lg',
|
||||
to: '/my/lists',
|
||||
});
|
||||
}].concat(lists.map((list) => ({
|
||||
type: 'link' as const,
|
||||
text: list.name,
|
||||
icon: '',
|
||||
to: `/timeline/list/${list.id}`,
|
||||
})));
|
||||
os.popupMenu(items, ev.currentTarget ?? ev.target);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue