1
0

qml: add channel backup option to channel details page

This commit is contained in:
Sander van Grieken
2022-08-24 10:15:44 +02:00
parent bb8af0cd08
commit b0cfc2ab14
2 changed files with 23 additions and 2 deletions

View File

@@ -22,8 +22,17 @@ Pane {
icon.color: 'transparent'
action: Action {
text: qsTr('Backup');
enabled: false
onTriggered: {}
enabled: true
onTriggered: {
var dialog = app.genericShareDialog.createObject(root,
{
title: qsTr('Channel Backup for %1').arg(channeldetails.short_cid),
text: channeldetails.channelBackup(),
text_help: channeldetails.channelBackupHelpText()
}
)
dialog.open()
}
icon.source: '../../icons/file.png'
}
}