preload antennas & lists
This commit is contained in:
parent
482c21d00e
commit
9e6a553434
|
@ -152,8 +152,8 @@ function top(): void {
|
||||||
scroll(rootEl, { top: 0 });
|
scroll(rootEl, { top: 0 });
|
||||||
}
|
}
|
||||||
|
|
||||||
async function chooseList(ev: MouseEvent): Promise<void> {
|
const lists = await os.api("users/lists/list");
|
||||||
const lists = await os.api("users/lists/list");
|
function chooseList(ev: MouseEvent) {
|
||||||
const items = [
|
const items = [
|
||||||
{
|
{
|
||||||
type: "link" as const,
|
type: "link" as const,
|
||||||
|
@ -172,8 +172,8 @@ async function chooseList(ev: MouseEvent): Promise<void> {
|
||||||
os.popupMenu(items, ev.currentTarget ?? ev.target);
|
os.popupMenu(items, ev.currentTarget ?? ev.target);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function chooseAntenna(ev: MouseEvent): Promise<void> {
|
const antennas = await os.api("antennas/list");
|
||||||
const antennas = await os.api("antennas/list");
|
function chooseAntenna(ev: MouseEvent) {
|
||||||
const items = [
|
const items = [
|
||||||
{
|
{
|
||||||
type: "link" as const,
|
type: "link" as const,
|
||||||
|
|
Loading…
Reference in New Issue