570c842934
* Derive wallet status from logs * Add send/recv icons * Set status individually for send and recv * Move status logic into own function * Add LNbits, Blink, CLN, LND, phoenixd logo * Fix wallet.status.any not using Status enum * Fix WebLN being weird * Use phoenixd logo with text * Also use wallet logo on config page * Also poll logs for wallet status * Use logger.info for logs not relevant for wallet status * Remove no longer used wallet badges * Crop LND logo like other logos * Fix all wallets show 'configure' * Fix wallet status not respecting enabled * Fix wallet.def.requiresConfig undefined * Fix banner shown for WebLN * Fix attach shown when configured * Filter by context.status to determine wallet status * Fix +- shown without context * Fix missing theme support for wallet logos
17 lines
439 B
JavaScript
17 lines
439 B
JavaScript
export const name = 'webln'
|
|
export const walletType = 'WEBLN'
|
|
export const walletField = 'walletWebLN'
|
|
|
|
export const validate = ({ enabled }) => {
|
|
if (enabled && typeof window !== 'undefined' && !window?.webln) {
|
|
throw new Error('no WebLN provider found')
|
|
}
|
|
}
|
|
|
|
export const fields = []
|
|
|
|
export const card = {
|
|
title: 'WebLN',
|
|
subtitle: 'use a [WebLN provider](https://www.webln.guide/ressources/webln-providers) for payments'
|
|
}
|