File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
core/frontend/src/components/wifi Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1010 >
1111 <v-toolbar-title >Wifi</v-toolbar-title >
1212 <v-spacer />
13+ <v-btn
14+ v-tooltip =" 'Refresh'"
15+ icon
16+ color =" gray"
17+ hide-details =" auto"
18+ @click =" $emit('refresh-request')"
19+ >
20+ <v-icon >mdi-refresh</v-icon >
21+ </v-btn >
1322 <v-btn
1423 v-tooltip =" 'Toggle hotspot'"
1524 icon
Original file line number Diff line number Diff line change 11<template >
22 <div >
3- <wifi-updater v-if =" !wifi_service_disabled" />
3+ <wifi-updater v-if =" !wifi_service_disabled" ref = " wifiUpdater " />
44 <v-menu
55 :close-on-content-click =" false"
66 nudge-left =" 500"
2929 </v-icon >
3030 </v-card >
3131 </template >
32- <wifi-manager v-if =" !wifi_service_disabled" />
32+ <wifi-manager v-if =" !wifi_service_disabled" @refresh-request = " onRefreshRequest " />
3333 <v-card
3434 v-else
3535 elevation =" 1"
@@ -88,6 +88,12 @@ export default Vue.extend({
8888 this .disabled_services = ((environment_variables ?.BLUEOS_DISABLE_SERVICES as string ) ?? ' ' ).split (' ,' ) as string []
8989 })
9090 },
91+ methods: {
92+ onRefreshRequest(): void {
93+ wifi .setAvailableNetworks (null )
94+ this .$refs .wifiUpdater ?.fetchAvailableNetworks ()
95+ },
96+ },
9197})
9298 </script >
9399
You can’t perform that action at this time.
0 commit comments