This commit is contained in:
ThatOneCalculator 2022-12-06 00:05:55 -08:00
parent 950421b84c
commit 266229daec
2 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "calckey", "name": "calckey",
"version": "12.119.0-calc.19-b9", "version": "12.119.0-calc.19-b10",
"codename": "aqua", "codename": "aqua",
"repository": { "repository": {
"type": "git", "type": "git",

View file

@ -144,17 +144,17 @@ function top(): void {
async function chooseList(ev: MouseEvent): Promise<void> { async function chooseList(ev: MouseEvent): Promise<void> {
const lists = await os.api('users/lists/list'); const lists = await os.api('users/lists/list');
const items = lists.map((list) => ({ const items = [{
type: 'link' as const,
text: list.name,
icon: '',
to: `/timeline/list/${list.id}`,
})).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',
}); }].concat(lists.map((list) => ({
type: 'link' as const,
text: list.name,
icon: '',
to: `/timeline/list/${list.id}`,
})));
os.popupMenu(items, ev.currentTarget ?? ev.target); os.popupMenu(items, ev.currentTarget ?? ev.target);
} }