Finish Network Menu rework...

This commit is contained in:
Jas Singh
2024-06-29 18:10:21 -07:00
parent 5ddf5c240d
commit da5d297b60
10 changed files with 328 additions and 106 deletions

View File

@@ -2,7 +2,8 @@ const network = await Service.import("network");
import { renderWAPs } from "./WirelessAPs.js";
import { renderWapStaging } from "./APStaging.js";
const Staging = Variable("none");
const Staging = Variable({});
const Connecting = Variable("");
const Wifi = () => {
return Widget.Box({
@@ -26,14 +27,14 @@ const Wifi = () => {
Widget.Box({
class_name: "wap-staging",
setup: (self) => {
renderWapStaging(self, Staging);
renderWapStaging(self, network, Staging, Connecting);
},
}),
Widget.Box({
class_name: "available-waps",
vertical: true,
setup: (self) => {
renderWAPs(self, network);
renderWAPs(self, network, Staging, Connecting);
},
}),
],