From 35bc7263da1199c898f3dc47d8004cdf0a7629a6 Mon Sep 17 00:00:00 2001 From: Xavier Michelon Date: Mon, 24 Oct 2022 10:03:01 +0200 Subject: [PATCH] GODT-1519: move back to account view after sending bug report. --- .../frontend/bridge-gui/bridge-gui/qml/BugReportView.qml | 5 ++++- .../frontend/bridge-gui/bridge-gui/qml/ContentWrapper.qml | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/BugReportView.qml b/internal/frontend/bridge-gui/bridge-gui/qml/BugReportView.qml index 39f68289..09159e76 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/BugReportView.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/BugReportView.qml @@ -28,6 +28,8 @@ SettingsView { property var selectedAddress + signal bugReportWasSent() + Label { text: qsTr("Report a problem") colorScheme: root.colorScheme @@ -61,7 +63,7 @@ SettingsView { } onTextChanged: { - // Rise max length error imidiatly while typing + // Rise max length error immediately while typing if (description.text.length > description._maxLength) { validate() } @@ -164,6 +166,7 @@ SettingsView { Connections { target: Backend function onReportBugFinished() { sendButton.loading = false } + function onBugReportSendSuccess() { root.bugReportWasSent() } } } diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/ContentWrapper.qml b/internal/frontend/bridge-gui/bridge-gui/qml/ContentWrapper.qml index f8da8acc..85e3d523 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/ContentWrapper.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/ContentWrapper.qml @@ -359,6 +359,10 @@ Item { onBack: { rightContent.showHelpView() } + + onBugReportWasSent: { + rightContent.showAccount() + } } function showAccount(index) {