diff --git a/TODO.md b/TODO.md index edf2c06d..56826d71 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,4 @@ +- cancel sign in, sign out key icon - Media - Confirmation box after picking file to upload - Handle set avatar upload errors diff --git a/src/icons/thin/register.svg b/src/icons/thin/register.svg new file mode 100644 index 00000000..949bed96 --- /dev/null +++ b/src/icons/thin/register.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/icons/thin/reset-password.svg b/src/icons/thin/reset-password.svg new file mode 100644 index 00000000..217321eb --- /dev/null +++ b/src/icons/thin/reset-password.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/qml/Pages/AddAccount/AddAccount.qml b/src/qml/Pages/AddAccount/AddAccount.qml index 54ae1c54..aee5e38c 100644 --- a/src/qml/Pages/AddAccount/AddAccount.qml +++ b/src/qml/Pages/AddAccount/AddAccount.qml @@ -9,7 +9,7 @@ HPage { ] SignIn { Component.onCompleted: forceActiveFocus() } - Item {} // TODO - Item {} // TODO + Register {} + Recovery {} } } diff --git a/src/qml/Pages/AddAccount/Register.qml b/src/qml/Pages/AddAccount/Register.qml new file mode 100644 index 00000000..ade8eebb --- /dev/null +++ b/src/qml/Pages/AddAccount/Register.qml @@ -0,0 +1,29 @@ +import QtQuick 2.12 +import QtQuick.Layouts 1.12 +import "../../Base" + +HBox { + id: signInBox + clickButtonOnEnter: "ok" + + buttonModel: [ + { name: "ok", text: qsTr("Register from Riot"), iconName: "register" }, + ] + + buttonCallbacks: ({ + ok: button => { + Qt.openUrlExternally("https://riot.im/app/#/register") + } + }) + + + HLabel { + wrapMode: Text.Wrap + text: qsTr( + "Registering is not implemented yet. You can create a new " + + "account from a client that supports it, such as Riot." + ) + + Layout.fillWidth: true + } +}