diff options
Diffstat (limited to 'resources/qml/Root.qml')
-rw-r--r-- | resources/qml/Root.qml | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/resources/qml/Root.qml b/resources/qml/Root.qml index e26b386a..fb0c6036 100644 --- a/resources/qml/Root.qml +++ b/resources/qml/Root.qml @@ -348,11 +348,6 @@ Pane { } } Platform.MessageDialog { - id: uiaErrorDialog - - buttons: Platform.MessageDialog.Ok - } - Platform.MessageDialog { id: uiaConfirmationLinkDialog buttons: Platform.MessageDialog.Ok @@ -360,6 +355,7 @@ Pane { onAccepted: UIA.continue3pidReceived() } + Connections { function onConfirm3pidToken() { uiaConfirmationLinkDialog.open(); @@ -367,10 +363,6 @@ Pane { function onEmail() { uiaEmailPrompt.show(); } - function onError(msg) { - uiaErrorDialog.text = msg; - uiaErrorDialog.open(); - } function onPassword() { console.log("UIA: password needed"); uiaPassPrompt.show(); @@ -381,6 +373,18 @@ Pane { function onPrompt3pidToken() { uiaTokenPrompt.show(); } + function onReCaptcha(recaptcha) { + var component = Qt.createComponent("qrc:/resources/qml/dialogs/ReCaptchaDialog.qml"); + if (component.status == Component.Ready) { + var dialog = component.createObject(timelineRoot, { + "recaptcha": recaptcha + }); + dialog.show(); + destroyOnClose(dialog); + } else { + console.error("Failed to create component: " + component.errorString()); + } + } target: UIA } |