feet: add seed command

This commit is contained in:
Vlad Stan 2022-07-21 12:18:45 +03:00
parent 9cbd01d514
commit 559b4a663c
3 changed files with 27 additions and 0 deletions

View File

@ -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()

View File

@ -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') : ''

View File

@ -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