mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
bleh!!!!
This commit is contained in:
parent
daaca0d980
commit
a958d27fd7
2 changed files with 9 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.119.0-calc.19-b10",
|
"version": "12.119.0-calc.19-b11",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -160,19 +160,19 @@ async function chooseList(ev: MouseEvent): Promise<void> {
|
||||||
|
|
||||||
async function chooseAntenna(ev: MouseEvent): Promise<void> {
|
async function chooseAntenna(ev: MouseEvent): Promise<void> {
|
||||||
const antennas = await os.api('antennas/list');
|
const antennas = await os.api('antennas/list');
|
||||||
const items = antennas.map((antenna) => ({
|
const items = [{
|
||||||
type: 'link' as const,
|
|
||||||
text: antenna.name,
|
|
||||||
icon: '',
|
|
||||||
indicate: antenna.hasUnreadNote,
|
|
||||||
to: `/timeline/antenna/${antenna.id}`,
|
|
||||||
})).unshift({
|
|
||||||
type: 'link' as const,
|
type: 'link' as const,
|
||||||
indicate: false,
|
indicate: false,
|
||||||
text: i18n.ts.manageAntennas,
|
text: i18n.ts.manageAntennas,
|
||||||
icon: 'ph-faders-horizontal-bold ph-lg',
|
icon: 'ph-faders-horizontal-bold ph-lg',
|
||||||
to: '/my/antennas',
|
to: '/my/antennas',
|
||||||
});
|
}].concat(antennas.map((antenna) => ({
|
||||||
|
type: 'link' as const,
|
||||||
|
text: antenna.name,
|
||||||
|
icon: '',
|
||||||
|
indicate: antenna.hasUnreadNote,
|
||||||
|
to: `/timeline/antenna/${antenna.id}`,
|
||||||
|
})));
|
||||||
os.popupMenu(items, ev.currentTarget ?? ev.target);
|
os.popupMenu(items, ev.currentTarget ?? ev.target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue