Skip to content

Commit

Permalink
fix missing code
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Aug 14, 2024
1 parent dbdd08d commit 94443c8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/components/SettingsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -886,9 +886,10 @@ export default defineComponent({
this.unsubscribeNWC();
}
},
npcEnabled: function () {
npcEnabled: async function () {
if (this.npcEnabled) {
this.generateNPCConnection();
await this.initSigner();
await this.generateNPCConnection();
} else {
this.npcAddress = "";
}
Expand All @@ -904,6 +905,7 @@ export default defineComponent({
"checkNip07Signer",
"resetPrivateKeySigner",
"resetNip46Signer",
"initSigner",
]),
...mapActions(useNWCStore, [
"generateNWCConnection",
Expand All @@ -929,6 +931,14 @@ export default defineComponent({
...mapActions(useWorkersStore, ["invoiceCheckWorker"]),
...mapActions(useProofsStore, ["serializeProofs"]),
...mapActions(useNPCStore, ["generateNPCConnection"]),
generateNewMnemonic: async function () {
this.newMnemonic();
await this.initSigner();
await this.generateNPCConnection();
},
toggleMnemonicVisibility: function () {
this.hideMnemonic = !this.hideMnemonic;
},
enable_terminal: function () {
// enable debug terminal
var script = document.createElement("script");
Expand Down

0 comments on commit 94443c8

Please sign in to comment.