⚗️
This commit is contained in:
parent
6ee233b27f
commit
daaca0d980
2 changed files with 8 additions and 8 deletions
|
@ -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 a new issue