mirror of
https://github.com/tompro/sattle.git
synced 2026-08-27 07:15:59 +00:00
feat: nwc connections settings page with one-time connection strings and service lifecycle
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { defineBoot } from '#q-app';
|
||||
import { useWalletStore } from '@/stores/wallet';
|
||||
import { useNostrBackupStore } from '@/stores/nostrBackup';
|
||||
import { useNwcStore } from '@/stores/nwc';
|
||||
|
||||
// Wallet lifecycle bootstrap: reflects whatever is on this device into the
|
||||
// wallet store at app start - a plaintext-stored key unlocks straight away,
|
||||
@@ -12,4 +13,7 @@ export default defineBoot(async () => {
|
||||
// instantiating the store arms its watchers: while the wallet is unlocked
|
||||
// and nostr backup is enabled, store changes schedule debounced publishes
|
||||
useNostrBackupStore();
|
||||
// same arming for NWC: while enabled and unlocked, the service answers
|
||||
// client requests; on lock it stops and drops the key-material closure
|
||||
useNwcStore();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user