No internet feature
This commit is contained in:
@ -32,7 +32,7 @@
|
||||
<span v-html="$t('generate-ap.error_msg2')"></span>
|
||||
<br /><br />
|
||||
</p>
|
||||
<button v-if="window.config.reboot_option" class="btn" v-on:click="reboot()">{{ $t("generate-ap.restart_btn") }}</button>
|
||||
<button v-if="reboot_option" class="btn" v-on:click="reboot()">{{ $t("generate-ap.restart_btn") }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -54,7 +54,7 @@ export default {
|
||||
capture_start: false,
|
||||
interval: false,
|
||||
error: false,
|
||||
reboot_option: false,
|
||||
reboot_option: window.config.reboot_option,
|
||||
attempts: 3,
|
||||
translation: {}
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ export default {
|
||||
var saved_ssid = this.saved_ssid
|
||||
var list_ssids = this.list_ssids
|
||||
var internet = this.internet
|
||||
if (window.config.iface_out.charAt(0) == 'e' || window.config.iface_out.charAt(0) == 'n'){
|
||||
if (window.config.iface_out.charAt(0) == 'e'){
|
||||
router.push({ name: 'generate-ap' });
|
||||
} else {
|
||||
router.push({ name: 'wifi-select',
|
||||
|
@ -23,7 +23,7 @@
|
||||
axios.get('/api/network/status', { timeout: 10000 })
|
||||
.then(response => {
|
||||
if (response.data.internet) this.internet = true
|
||||
if (window.config.iface_out.charAt(0) == 'e' || window.config.iface_out.charAt(0) == 'n') {
|
||||
if (window.config.iface_out.charAt(0) == 'e') {
|
||||
setTimeout(function () { this.goto_home(); }.bind(this), 1000);
|
||||
} else {
|
||||
this.get_wifi_networks();
|
||||
|
@ -31,7 +31,7 @@
|
||||
<div v-else>
|
||||
<p><strong>{{ $t("wifi-select.not_connected") }}</strong><br />{{ $t("wifi-select.please_config") }}</p>
|
||||
<div class="empty-action">
|
||||
<button class="btn btn-primary" @click="enter_creds = true">{{ $t("wifi-select.lets_do_btn") }}</button>
|
||||
<button class="btn" v-on:click="force_ap()">{{ $t("wifi-select.no_internet") }}</button> <button class="btn btn-primary" @click="enter_creds = true">{{ $t("wifi-select.lets_do_btn") }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -117,6 +117,9 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
force_ap: function() {
|
||||
router.push({ name: 'generate-ap' });
|
||||
},
|
||||
onChange(input) {
|
||||
this.input = input
|
||||
this.password = this.input;
|
||||
|
Reference in New Issue
Block a user