feet: add seed
command
This commit is contained in:
parent
9cbd01d514
commit
559b4a663c
|
@ -907,6 +907,18 @@ new Vue({
|
|||
})
|
||||
}
|
||||
},
|
||||
hwwShowSeed: async function () {
|
||||
try {
|
||||
await this.serial.writer.write(COMMAND_SEED + '\n')
|
||||
} catch (error) {
|
||||
this.$q.notify({
|
||||
type: 'warning',
|
||||
message: 'Failed to show seed!',
|
||||
caption: `${error}`,
|
||||
timeout: 10000
|
||||
})
|
||||
}
|
||||
},
|
||||
//################### UTXOs ###################
|
||||
scanAllAddresses: async function () {
|
||||
await this.refreshAddresses()
|
||||
|
|
|
@ -5,6 +5,7 @@ const COMMAND_SEND_PSBT = '/psbt'
|
|||
const COMMAND_SIGN_PSBT = '/sign'
|
||||
const COMMAND_HELP = '/help'
|
||||
const COMMAND_WIPE = '/wipe'
|
||||
const COMMAND_SEED = '/seed'
|
||||
|
||||
const blockTimeToDate = blockTime =>
|
||||
blockTime ? moment(blockTime * 1000).format('LLL') : ''
|
||||
|
|
|
@ -1184,6 +1184,20 @@
|
|||
>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
:disabled="!hww.authenticated"
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="hwwShowSeed()"
|
||||
>
|
||||
<q-item-section>
|
||||
<q-item-label>Show Seed</q-item-label>
|
||||
<q-item-label caption
|
||||
>Show seed on the Hardware Wallet
|
||||
display.</q-item-label
|
||||
>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@click="hwwShowWipeDialog()"
|
||||
clickable
|
||||
|
|
Loading…
Reference in New Issue
Block a user