Skip to content

Commit 8feb286

Browse files
committed
Disable WiFi settings and hide relative tab
1 parent 734a880 commit 8feb286

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/components/Settings.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
</v-layout>
7373
</v-container>
7474
</v-tab-item>
75+
<!--
7576
<v-tab-item>
7677
<v-container grid-list-md text-xs-center>
7778
<v-layout row wrap>
@@ -96,6 +97,8 @@
9697
<v-card-text>
9798
</v-card-text>
9899
</v-tab-item>
100+
101+
-->
99102
<v-tab-item>
100103
<v-container grid-list-md text-xs-center>
101104
<v-layout row wrap>
@@ -335,10 +338,12 @@ export default {
335338
data.power = [remoteConfig.move_power_angle_1, remoteConfig.move_power_angle_2, remoteConfig.move_power_angle_3]
336339
data.btnFun = remoteConfig.button_func
337340
// ?
341+
/*
338342
data.wifiMode = remoteConfig.wifi_mode
339343
340344
data.wifiSSID = remoteConfig.wifi_ssid
341345
data.wifiPsw = remoteConfig.wifi_psk
346+
*/
342347
data.motorMode = remoteConfig.move_motor_mode
343348
data.trimFactor = remoteConfig.move_motor_trim
344349
data.startSound = remoteConfig.sound_start
@@ -366,13 +371,13 @@ export default {
366371
let CBv1 = this.CBv1
367372
let data = this.settings
368373
369-
if (selectedTab == 1) {
374+
if (selectedTab == 10) {
370375
var valuesAsString = qs.stringify({
371376
'wifi_mode': this.settings.wifiMode,
372377
'wifi_ssid': this.settings.wifiSSID,
373378
'wifi_psk': this.settings.wifiPsw,
374379
})
375-
// Send post with URL encoded parameters
380+
// Send post with URL encoded parameters
376381
axios.post(CBv1 + '/wifi', valuesAsString)
377382
.then(function() {
378383
console.log("Sent")
@@ -480,7 +485,8 @@ export default {
480485
},
481486
drawer: null,
482487
tab: null,
483-
tabs: ['Generali', 'Rete', 'Movimento', 'Suoni', 'Avanzate'],
488+
//tabs: ['Generali', 'Rete', 'Movimento', 'Suoni', 'Avanzate'],
489+
tabs: ['Generali', 'Movimento', 'Suoni', 'Avanzate'],
484490
}
485491
}
486492
}

0 commit comments

Comments
 (0)