diff --git a/CHANGELOG.md b/CHANGELOG.md index dda9dc4b..d98bb7b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ All notable changes to this project will be documented in this file. ### Fixed +- Fixes to WiFi.svelte and models.ts to fix type errors and visibility rights. + ### Removed - Removed duplicate in ESP32SvelteKit.cpp [#47](https://github.com/theelims/ESP32-sveltekit/pull/47) and WiFi.svelte [#50](https://github.com/theelims/ESP32-sveltekit/pull/50) diff --git a/interface/src/lib/types/models.ts b/interface/src/lib/types/models.ts index e1df37c0..11ac54af 100644 --- a/interface/src/lib/types/models.ts +++ b/interface/src/lib/types/models.ts @@ -15,7 +15,7 @@ export type WifiStatus = { export type WifiSettings = { hostname: string; priority_RSSI: boolean; - wifi_networks: NetworkItem[]; + wifi_networks: KnownNetworkItem[]; }; export type KnownNetworkItem = { diff --git a/interface/src/routes/wifi/sta/Wifi.svelte b/interface/src/routes/wifi/sta/Wifi.svelte index a5542b07..2eb2916f 100644 --- a/interface/src/routes/wifi/sta/Wifi.svelte +++ b/interface/src/routes/wifi/sta/Wifi.svelte @@ -454,17 +454,17 @@ {/await} -
-
- Saved Networks -
- {#await getWifiSettings()} - - {:then nothing} -
- {#if !$page.data.features.security || $user.admin} + {#if !$page.data.features.security || $user.admin} +
+
+ Saved Networks +
+ {#await getWifiSettings()} + + {:then nothing} +
- {/if} -
- - -
-
- -
-
-
{dndNetworkList[index].ssid}
-
- {#if !$page.data.features.security || $user.admin} -
-
- - + + +
+
+
- {/if} -
-
+
+
{dndNetworkList[index].ssid}
+
+ {#if !$page.data.features.security || $user.admin} +
+
+ + +
+ {/if} +
+ +
-
- {#if !$page.data.features.security || $user.admin}
- {/if} - {/await} -
+ {/await} +
+ {/if}