Enhances super user experience with Castle wallet

Simplifies the user experience for super users by automatically using the Castle wallet for transactions, removing the need to configure a separate user wallet.

This change streamlines the workflow for super users by:
- Automatically assigning the Castle wallet to super users
- Hiding the user wallet configuration options in the UI
- Reloading user wallet settings to reflect the Castle wallet
This commit is contained in:
padreug 2025-10-22 15:11:00 +02:00
parent f1ada5e290
commit cb7e4ee555
3 changed files with 57 additions and 14 deletions

View file

@ -176,6 +176,10 @@ window.app = Vue.createApp({
})
this.settingsDialog.show = false
await this.loadSettings()
// Reload user wallet to reflect castle wallet for super user
if (this.isSuperUser) {
await this.loadUserWallet()
}
} catch (error) {
LNbits.utils.notifyApiError(error)
} finally {