Skip to content

Commit

Permalink
core: frontend: wifi: WifiManager: Add loading animation if wifi stor…
Browse files Browse the repository at this point in the history
…e is in loading state

Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Jan 17, 2025
1 parent a2e0531 commit b271385
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion core/frontend/src/components/wifi/WifiManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</v-btn>
</v-app-bar>

<v-sheet>
<v-sheet v-if="!wifi_is_loading">
<wifi-network-card
v-if="current_network"
connected
Expand Down Expand Up @@ -92,6 +92,12 @@
</div>
</v-sheet>
</v-sheet>
<v-sheet v-else>
<spinning-logo
size="30%"
subtitle="Waiting for wifi networks..."
/>
</v-sheet>

<connection-dialog
v-if="selected_network"
Expand Down Expand Up @@ -179,6 +185,9 @@ export default Vue.extend({
}
},
computed: {
wifi_is_loading(): boolean {
return wifi.is_loading
},
wifi_status(): WifiStatus | null {
return wifi.network_status
},
Expand Down

0 comments on commit b271385

Please sign in to comment.