Debug on condition when changing wifi network
This commit is contained in:
parent
1b678b2e09
commit
b8af8d6cbf
@ -4,35 +4,33 @@
|
|||||||
<div v-if="have_internet">
|
<div v-if="have_internet">
|
||||||
<p v-html="$t('wifi-select.already_connected_question')"></p>
|
<p v-html="$t('wifi-select.already_connected_question')"></p>
|
||||||
<div class="empty-action">
|
<div class="empty-action">
|
||||||
<button class="btn" @click="have_internet = false">{{ $t("wifi-select.no_btn") }}</button>
|
<button class="btn" @click="have_internet = false; enter_creds = true">{{ $t("wifi-select.no_btn") }}</button>
|
||||||
<button class="btn" :class="[ connecting ? 'loading' : '', success ? 'btn-success' : 'btn-primary', ]" @click="$router.push({ name: 'generate-ap' })">{{ $t("wifi-select.yes_btn") }}</button>
|
<button class="btn" :class="[ connecting ? 'loading' : '', success ? 'btn-success' : 'btn-primary', ]" @click="$router.push({ name: 'generate-ap' })">{{ $t("wifi-select.yes_btn") }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-if="!have_internet && !enter_creds">
|
||||||
<div v-if="enter_creds" class="wifi-login">
|
<p><strong>{{ $t("wifi-select.not_connected") }}</strong><br />{{ $t("wifi-select.please_config") }}</p>
|
||||||
<div class="form-group">
|
<div class="empty-action">
|
||||||
<select class="form-select" id="ssid-select" v-model="ssid">
|
<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>
|
||||||
<option value="" selected>{{ $t("wifi-select.wifi_name") }}</option>
|
|
||||||
<option v-for="ssid in ssids" v-bind:key="ssid.ssid">
|
|
||||||
{{ ssid.ssid }}
|
|
||||||
</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input class="form-input" type="password" id="password" v-model="password" :placeholder="$t('wifi-select.wifi_password')" v-on:click="keyboard = (virtual_keyboard)? true : false">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button class="btn width-100" :class="[ connecting ? 'loading' : '', success ? 'btn-success' : 'btn-primary', ]" v-on:click="wifi_setup()">{{ btnval }}</button>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<button class="btn width-100" :class="[ refreshing ? 'loading' : '' ]" v-on:click="refresh_wifi_list()">{{ $t("wifi-select.refresh_btn") }}</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
</div>
|
||||||
<p><strong>{{ $t("wifi-select.not_connected") }}</strong><br />{{ $t("wifi-select.please_config") }}</p>
|
<div v-if="!have_internet && enter_creds" class="wifi-login">
|
||||||
<div class="empty-action">
|
<div class="form-group">
|
||||||
<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>
|
<select class="form-select" id="ssid-select" v-model="ssid">
|
||||||
</div>
|
<option value="" selected>{{ $t("wifi-select.wifi_name") }}</option>
|
||||||
|
<option v-for="ssid in ssids" v-bind:key="ssid.ssid">
|
||||||
|
{{ ssid.ssid }}
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input class="form-input" type="password" id="password" v-model="password" :placeholder="$t('wifi-select.wifi_password')" v-on:click="keyboard = (virtual_keyboard)? true : false">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<button class="btn width-100" :class="[ connecting ? 'loading' : '', success ? 'btn-success' : 'btn-primary', ]" v-on:click="wifi_setup()">{{ btnval }}</button>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<button class="btn width-100" :class="[ refreshing ? 'loading' : '' ]" v-on:click="refresh_wifi_list()">{{ $t("wifi-select.refresh_btn") }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user