1
0

qml: add nostr relay config in NetworkOverview and add relay edit dialog

This commit is contained in:
Sander van Grieken
2025-04-23 13:02:29 +02:00
parent 37f0f539c8
commit fcaa39b0dc
4 changed files with 162 additions and 0 deletions

View File

@@ -217,6 +217,22 @@ Pane {
text: Daemon.currentWallet.lightningNumPeers
}
Heading {
Layout.columnSpan: 2
text: qsTr('Nostr')
}
Label {
text: qsTr('Relays:')
color: Material.accentColor
}
Label {
Layout.fillWidth: true
text: Config.nostrRelays.replace(/,/g, "\n")
wrapMode: Text.Wrap
}
Heading {
Layout.columnSpan: 2
text: qsTr('Proxy')
@@ -286,6 +302,16 @@ Pane {
dialog.open()
}
}
FlatButton {
Layout.fillWidth: true
Layout.preferredWidth: 1
text: qsTr('Nostr Settings');
icon.source: '../../icons/nostr.png'
onClicked: {
var dialog = nostrConfig.createObject(root)
dialog.open()
}
}
}
}
@@ -302,4 +328,11 @@ Pane {
onClosed: destroy()
}
}
Component {
id: nostrConfig
NostrConfigDialog {
onClosed: destroy()
}
}
}