mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-23 13:31:27 +02:00
Fix some v-if syntax
This commit is contained in:
parent
a066be8e38
commit
b0d263091d
@ -2,7 +2,7 @@
|
||||
<div class="field" :class="{ 'pt-3' : hasOffset }">
|
||||
<label class="label" v-html="label"></label>
|
||||
<div class="is-toggle buttons">
|
||||
<label class="button is-dark" :disabled="isDisabled" v-for="choice in choices" :class="{ 'is-link' : form[fieldName] === choice.value }">
|
||||
<label class="button is-dark" :disabled="isDisabled" v-for="(choice, index) in choices" :key="index" :class="{ 'is-link' : form[fieldName] === choice.value }">
|
||||
<input type="radio" class="is-hidden" :checked="form[fieldName] === choice.value" :value="choice.value" v-model="form[fieldName]" v-on:change="$emit(fieldName, form[fieldName])" :disabled="isDisabled" />
|
||||
<font-awesome-icon :icon="['fas', choice.icon]" v-if="choice.icon" class="mr-3" /> {{ choice.text }}
|
||||
</label>
|
||||
|
@ -16,9 +16,9 @@
|
||||
</div>
|
||||
<div class="columns is-mobile" v-if="form.errors.any()">
|
||||
<div class="column">
|
||||
<p v-for="field in form.errors.errors" class="help is-danger">
|
||||
<p v-for="(field, index) in form.errors.errors" :key="index" class="help is-danger">
|
||||
<ul>
|
||||
<li v-for="(error, index) in field">{{ error }}</li>
|
||||
<li v-for="(error, index) in field" :key="index">{{ error }}</li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
@ -103,7 +103,7 @@
|
||||
<p class="control">
|
||||
<span class="select">
|
||||
<select @change="form.secret=''" v-model="secretIsBase32Encoded">
|
||||
<option v-for="format in secretFormats" :value="format.value">{{ format.text }}</option>
|
||||
<option v-for="(format, index) in secretFormats" :key="index" :value="format.value">{{ format.text }}</option>
|
||||
</select>
|
||||
</span>
|
||||
</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user