fix: default hide funding inputs (#2987)
* fix: default hide funding inputs To protect admins from over the shoulder attackers, and the attackers from chipping away at their own morality. * Remove need for function
This commit is contained in:
parent
2af5ac9678
commit
1bfb09ddab
3 changed files with 14 additions and 5 deletions
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -30,6 +30,7 @@ window.app.component('lnbits-funding-sources', {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
hideInput: true,
|
||||
rawFundingSources: [
|
||||
['VoidWallet', 'Void Wallet', null],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -1052,13 +1052,21 @@
|
|||
>
|
||||
<div class="col-12">
|
||||
<q-input
|
||||
filled
|
||||
type="text"
|
||||
class="q-mt-sm"
|
||||
v-model="formData[key]"
|
||||
filled
|
||||
class="q-mt-sm"
|
||||
:type="hideInput ? 'password' : 'text'"
|
||||
:label="prop.label"
|
||||
:hint="prop.hint"
|
||||
></q-input>
|
||||
>
|
||||
<template v-slot:append>
|
||||
<q-icon
|
||||
:name="hideInput ? 'visibility_off' : 'visibility'"
|
||||
class="cursor-pointer"
|
||||
@click="this.hideInput = !this.hideInput"
|
||||
></q-icon>
|
||||
</template>
|
||||
</q-input>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue