Arreglado error de booleanos pasados como string y warning de keys

This commit is contained in:
Ale 2022-10-24 22:39:23 -03:00
parent 69b244d074
commit 4906d2bb4d
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<div class="select"> <div class="select">
<select @change="onGDCSelected" v-model="gdc" name="name"> <select @change="onGDCSelected" v-model="gdc" name="name">
<option :disabled="isDefaultDisabled==1" value=null>Seleccionar</option> <option :disabled="isDefaultDisabled==1" value=null>Seleccionar</option>
<option v-for="gdc in gdcs" v-text="gdc.nombre + (isAdmin ? '_admin' : '')" <option v-for="(gdc, index) in gdcs" :key="index" v-text="gdc.nombre + (isAdmin ? '_admin' : '')"
:name="gdc.nombre + (isAdmin ? '_admin' : '')"> :name="gdc.nombre + (isAdmin ? '_admin' : '')">
</option> </option>
</select> </select>

View File

@ -6,7 +6,7 @@
<div class="select"> <div class="select">
<select @change="onRegionSelected" v-model="region"> <select @change="onRegionSelected" v-model="region">
<option :disabled="isDefaultDisabled===1" value=null>Seleccionar</option> <option :disabled="isDefaultDisabled===1" value=null>Seleccionar</option>
<option v-for="region in regiones" v-text="region" :name="region"></option> <option v-for="(region, index) in regiones" :key="index" v-text="region" :name="region"></option>
</select> </select>
</div> </div>
</div> </div>

View File

@ -21,10 +21,10 @@
Contraseña incorrecta, intentalo nuevamente. Contraseña incorrecta, intentalo nuevamente.
</div> </div>
@enderror @enderror
<region-select admin="true"></region-select> <region-select v-bind:admin="true"></region-select>
<form method="post" action="login"> <form method="post" action="login">
@csrf @csrf
<barrio-select admin="true"></barrio-select> <barrio-select v-bind:admin="true"></barrio-select>
<login-admin></login-admin> <login-admin></login-admin>
</form> </form>
</div> </div>