Skip to content

Commit b271385

Browse files
core: frontend: wifi: WifiManager: Add loading animation if wifi store is in loading state
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent a2e0531 commit b271385

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

core/frontend/src/components/wifi/WifiManager.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</v-btn>
4343
</v-app-bar>
4444

45-
<v-sheet>
45+
<v-sheet v-if="!wifi_is_loading">
4646
<wifi-network-card
4747
v-if="current_network"
4848
connected
@@ -92,6 +92,12 @@
9292
</div>
9393
</v-sheet>
9494
</v-sheet>
95+
<v-sheet v-else>
96+
<spinning-logo
97+
size="30%"
98+
subtitle="Waiting for wifi networks..."
99+
/>
100+
</v-sheet>
95101

96102
<connection-dialog
97103
v-if="selected_network"
@@ -179,6 +185,9 @@ export default Vue.extend({
179185
}
180186
},
181187
computed: {
188+
wifi_is_loading(): boolean {
189+
return wifi.is_loading
190+
},
182191
wifi_status(): WifiStatus | null {
183192
return wifi.network_status
184193
},

0 commit comments

Comments
 (0)