Skip to content

Commit

Permalink
feat: allow for enabling/disabling passphrase protection when loading…
Browse files Browse the repository at this point in the history
… seed
  • Loading branch information
grdddj committed Sep 9, 2024
1 parent 5acf3fa commit e2f984f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,18 @@ <h3>Emulator commands</h3>
<button class="negative" @click="emulatorPressNo();">Press no</button>
</div>
</div>
<input
id="enablePassphrase"
type="checkbox"
v-model="enablePassphrase"
/>
<label
class="underlined"
title="Passphrase protection will be enabled with loading seed."
for="enablePassphrase"
>Enable passphrase protection with Load</label
>
<br/>
<input
type="text"
placeholder="input seed"
Expand Down
3 changes: 2 additions & 1 deletion src/dashboard/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const app = createApp({
},
ws: null,
isWaitingForResponse: false,
enablePassphrase: true,
req_id: 0,
logs: [],
notifications: {
Expand Down Expand Up @@ -415,7 +416,7 @@ const app = createApp({
type: "emulator-setup",
mnemonic: seed,
pin: "",
passphrase_protection: false,
passphrase_protection: this.enablePassphrase,
label: "Hello!",
});
},
Expand Down

0 comments on commit e2f984f

Please sign in to comment.