Debug on condition when changing wifi network

This commit is contained in:
Félix Aime 2021-02-15 21:20:49 +01:00
parent 1b678b2e09
commit b8af8d6cbf

View File

@ -4,12 +4,17 @@
<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> &nbsp; <button class="btn" @click="have_internet = false; enter_creds = true">{{ $t("wifi-select.no_btn") }}</button> &nbsp;
<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="empty-action">
<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 v-if="!have_internet && enter_creds" class="wifi-login">
<div class="form-group"> <div class="form-group">
<select class="form-select" id="ssid-select" v-model="ssid"> <select class="form-select" id="ssid-select" v-model="ssid">
<option value="" selected>{{ $t("wifi-select.wifi_name") }}</option> <option value="" selected>{{ $t("wifi-select.wifi_name") }}</option>
@ -28,13 +33,6 @@
<button class="btn width-100" :class="[ refreshing ? 'loading' : '' ]" v-on:click="refresh_wifi_list()">{{ $t("wifi-select.refresh_btn") }}</button> <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 v-else>
<p><strong>{{ $t("wifi-select.not_connected") }}</strong><br />{{ $t("wifi-select.please_config") }}</p>
<div class="empty-action">
<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>
</div> </div>
<div v-else> <div v-else>
<input :value="input" class="keyboardinput" @input="onInputChange" :placeholder="$t('wifi-select.tap_keyboard')"> <input :value="input" class="keyboardinput" @input="onInputChange" :placeholder="$t('wifi-select.tap_keyboard')">