qml: add nostr relay config in NetworkOverview and add relay edit dialog
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user