mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 06:16:46 +00:00
feat(gui): add toggle button for password field
Signed-off-by: Pranav C Balan <pranavxc@gmail.com>
This commit is contained in:
@@ -3,14 +3,18 @@
|
||||
todo : add toggle button
|
||||
-->
|
||||
<v-text-field
|
||||
type="password"
|
||||
:type="show ? 'text' : 'password'"
|
||||
dense
|
||||
outlined
|
||||
:rules="[v => !!v || !inputDetails.required || 'Required']"
|
||||
:name="inputDetails.key"
|
||||
:required="inputDetails.valid"
|
||||
:placeholder="inputDetails.placeholder || ''"
|
||||
v-on="parentListeners" v-model="localState" class="caption"/>
|
||||
v-on="parentListeners" v-model="localState" class="caption">
|
||||
<template v-slot:append>
|
||||
<v-icon @click="show = !show">{{show ? 'visibility_off' : 'visibility'}}</v-icon>
|
||||
</template>
|
||||
</v-text-field>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user