feat: simplify UI
This commit is contained in:
parent
ded6df61b1
commit
01c81c1a83
2 changed files with 40 additions and 32 deletions
|
|
@ -49,6 +49,7 @@ new Vue({
|
||||||
authenticated: false,
|
authenticated: false,
|
||||||
showPasswordDialog: false,
|
showPasswordDialog: false,
|
||||||
showConsole: false,
|
showConsole: false,
|
||||||
|
showSignedPsbt: false,
|
||||||
sendingPsbt: false,
|
sendingPsbt: false,
|
||||||
psbtSent: false
|
psbtSent: false
|
||||||
},
|
},
|
||||||
|
|
@ -781,9 +782,9 @@ new Vue({
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hwwToggleAuth: function () {
|
hwwExecuteDefaultCommand: function () {
|
||||||
if (this.hww.authenticated) {
|
if (this.hww.authenticated) {
|
||||||
this.hwwLogout()
|
this.hwwSendPsbt()
|
||||||
} else {
|
} else {
|
||||||
this.hwwShowPasswordDialog()
|
this.hwwShowPasswordDialog()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1129,8 +1129,8 @@
|
||||||
split
|
split
|
||||||
class="btn-full"
|
class="btn-full"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
:label="hww.authenticated ? 'Logout' : 'Login'"
|
:label="hww.authenticated ? 'Sign' : 'Login'"
|
||||||
@click="hwwToggleAuth()"
|
@click="hwwExecuteDefaultCommand()"
|
||||||
>
|
>
|
||||||
<q-list>
|
<q-list>
|
||||||
<q-item
|
<q-item
|
||||||
|
|
@ -1165,8 +1165,15 @@
|
||||||
:disabled="!hww.authenticated"
|
:disabled="!hww.authenticated"
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@click="hwwShowPasswordDialog()"
|
@click="hwwSendPsbt()"
|
||||||
>
|
>
|
||||||
|
<q-item-section>
|
||||||
|
<q-item-label>Sign</q-item-label>
|
||||||
|
<q-item-label caption
|
||||||
|
>Sign transaction on Hardware
|
||||||
|
Wallet</q-item-label
|
||||||
|
>
|
||||||
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
<q-item clickable v-close-popup>
|
<q-item clickable v-close-popup>
|
||||||
<q-item-section>
|
<q-item-section>
|
||||||
|
|
@ -1205,7 +1212,13 @@
|
||||||
v-model="hww.showConsole"
|
v-model="hww.showConsole"
|
||||||
></q-toggle>
|
></q-toggle>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3"></div>
|
<div class="col-3">
|
||||||
|
<q-spinner
|
||||||
|
v-if="hww.sendingPsbt == true"
|
||||||
|
color="primary"
|
||||||
|
size="2.55em"
|
||||||
|
></q-spinner>
|
||||||
|
</div>
|
||||||
<div class="col-3"></div>
|
<div class="col-3"></div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
@ -1231,31 +1244,6 @@
|
||||||
class="row items-center no-wrap q-mb-md"
|
class="row items-center no-wrap q-mb-md"
|
||||||
>
|
>
|
||||||
<div class="col-3 q-pr-lg">
|
<div class="col-3 q-pr-lg">
|
||||||
<q-btn
|
|
||||||
@click="hwwSendPsbt()"
|
|
||||||
unelevated
|
|
||||||
color="secondary"
|
|
||||||
class="btn-full"
|
|
||||||
>Sign
|
|
||||||
<q-spinner
|
|
||||||
v-if="hww.sendingPsbt == true"
|
|
||||||
color="primary"
|
|
||||||
></q-spinner>
|
|
||||||
</q-btn>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-6">
|
|
||||||
<q-badge
|
|
||||||
v-if="hww.psbtSent"
|
|
||||||
color="yellow"
|
|
||||||
text-color="black"
|
|
||||||
multi-line
|
|
||||||
class="text-subtitle2"
|
|
||||||
>Please check transaction data on the Hardware Wallet
|
|
||||||
display</q-badge
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div class="col-3 q-pl-lg">
|
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="hww.psbtSent"
|
v-if="hww.psbtSent"
|
||||||
@click="hwwSignPsbt()"
|
@click="hwwSignPsbt()"
|
||||||
|
|
@ -1265,9 +1253,28 @@
|
||||||
>Confirm</q-btn
|
>Confirm</q-btn
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-3 q-pl-lg">
|
||||||
|
<q-toggle
|
||||||
|
v-if="serial.psbtBase64Signed"
|
||||||
|
label="Show Console"
|
||||||
|
color="secodary float-left"
|
||||||
|
v-model="hww.showSignedPsbt"
|
||||||
|
></q-toggle>
|
||||||
|
</div>
|
||||||
|
<div class="col-6">
|
||||||
|
<q-badge
|
||||||
|
v-if="hww.psbtSent"
|
||||||
|
color="yellow"
|
||||||
|
text-color="black"
|
||||||
|
multi-line
|
||||||
|
class="text-subtitle2"
|
||||||
|
>Check transaction data on the Hardware Wallet
|
||||||
|
display</q-badge
|
||||||
|
>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="payment.psbtBase64Signed"
|
v-if="hww.showSignedPsbt"
|
||||||
class="row items-center no-wrap q-mb-md"
|
class="row items-center no-wrap q-mb-md"
|
||||||
>
|
>
|
||||||
<div class="col-3 q-pr-lg"></div>
|
<div class="col-3 q-pr-lg"></div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue