This commit is contained in:
shocknet-justin 2025-10-08 22:27:42 -04:00
parent 9c1dd8db6e
commit 160ff502d3
2 changed files with 4 additions and 1 deletions

View file

@ -43,6 +43,8 @@ export class Wizard {
try { try {
const apps = await this.storage.applicationStorage.GetApplications() const apps = await this.storage.applicationStorage.GetApplications()
const appNamesList = apps.map(app => app.name).join(', ') const appNamesList = apps.map(app => app.name).join(', ')
const relays = this.settings.nostrRelaySettings ? this.settings.nostrRelaySettings.relays : [];
const relayUrl = (relays && relays.length > 0) ? relays[0] : '';
return { return {
admin_npub: this.adminManager.GetAdminNpub(), admin_npub: this.adminManager.GetAdminNpub(),
http_url: this.settings.serviceUrl, http_url: this.settings.serviceUrl,
@ -53,7 +55,7 @@ export class Wizard {
relays: this.relays, relays: this.relays,
watchdog_ok: false, watchdog_ok: false,
source_name: appNamesList || this.settings.defaultAppName, source_name: appNamesList || this.settings.defaultAppName,
relay_url: this.settings.nostrRelaySettings.relays[0] || '', relay_url: relayUrl,
automate_liquidity: this.settings.liquiditySettings.liquidityProviderPub !== 'null', automate_liquidity: this.settings.liquiditySettings.liquidityProviderPub !== 'null',
push_backups_to_nostr: this.settings.pushBackupsToNostr, push_backups_to_nostr: this.settings.pushBackupsToNostr,
} }

View file

@ -45,6 +45,7 @@
<div class="checkbox" style="margin-top: 12px"> <div class="checkbox" style="margin-top: 12px">
<input type="checkbox" id="customCheckbox" /> <input type="checkbox" id="customCheckbox" />
<div class="checkbox-shape"></div>
<label for="customCheckbox"> <label for="customCheckbox">
Use the default managed relay service and auto-pay 1000 sats Use the default managed relay service and auto-pay 1000 sats
per month to support developers per month to support developers