63 lines
1.5 KiB
QML
Raw Normal View History

2019-12-19 07:46:16 -04:00
// SPDX-License-Identifier: LGPL-3.0-or-later
2019-08-28 03:54:53 -04:00
import QtQuick 2.12
import QtQuick.Layouts 1.12
import "../../Base"
import "../../Base/Buttons"
2019-08-28 03:54:53 -04:00
HFlickableColumnPage {
id: page
2019-08-28 11:54:25 -04:00
property string userId
function takeFocus() { exportButton.forceActiveFocus() }
footer: AutoDirectionLayout {
GroupButton {
id: exportButton
text: qsTr("Export")
icon.name: "export-keys"
onClicked: utils.makeObject(
"Dialogs/ExportKeys.qml",
page,
{ userId: page.userId },
obj => {
loading = Qt.binding(() => obj.exporting)
obj.dialog.open()
}
)
}
GroupButton {
text: qsTr("Import")
icon.name: "import-keys"
onClicked: utils.makeObject(
"Dialogs/ImportKeys.qml",
page,
{ userId: page.userId },
obj => { obj.dialog.open() }
)
}
}
2019-08-28 11:54:25 -04:00
2019-08-28 03:54:53 -04:00
HLabel {
wrapMode: Text.Wrap
text: qsTr(
"The decryption keys for messages received in encrypted rooms " +
"<b>until present time</b> can be saved " +
"to a passphrase-protected file.<br><br>" +
"You can then import this file on any Matrix account or " +
2019-09-07 19:17:32 -04:00
"client, to be able to decrypt these messages again."
)
textFormat: Text.StyledText
2019-08-28 03:54:53 -04:00
Layout.fillWidth: true
}
}