Add temporary "unimplemented" Register box

This commit is contained in:
miruka
2019-12-07 11:24:08 -04:00
parent a2ffaf4a67
commit f75d44a0dd
5 changed files with 38 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ HPage {
]
SignIn { Component.onCompleted: forceActiveFocus() }
Item {} // TODO
Item {} // TODO
Register {}
Recovery {}
}
}

View File

@@ -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
}
}