mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 18:07:31 -07:00
⚗️
This commit is contained in:
parent
6ee233b27f
commit
daaca0d980
2 changed files with 8 additions and 8 deletions
|
@ -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",
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue