From 0f1a6c7df1002319919f7a6d8d2ccd67a7a49479 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 7 Dec 2019 12:39:56 -0400 Subject: [PATCH] Add temporary Recovery box --- src/qml/Pages/AddAccount/Recovery.qml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/qml/Pages/AddAccount/Recovery.qml diff --git a/src/qml/Pages/AddAccount/Recovery.qml b/src/qml/Pages/AddAccount/Recovery.qml new file mode 100644 index 00000000..f5380455 --- /dev/null +++ b/src/qml/Pages/AddAccount/Recovery.qml @@ -0,0 +1,33 @@ +import QtQuick 2.12 +import QtQuick.Layouts 1.12 +import "../../Base" + +HBox { + id: signInBox + clickButtonOnEnter: "ok" + + buttonModel: [ + { + name: "ok", + text: qsTr("Reset password from Riot"), + iconName: "reset-password" + }, + ] + + buttonCallbacks: ({ + ok: button => { + Qt.openUrlExternally("https://riot.im/app/#/forgot_password") + } + }) + + + HLabel { + wrapMode: Text.Wrap + text: qsTr( + "Account recovery is not implemented yet. You can reset your " + + "password using a client that supports it, such as Riot." + ) + + Layout.fillWidth: true + } +}