forked from Silverfish/proton-bridge
GODT-1519: move back to account view after sending bug report.
This commit is contained in:
@ -28,6 +28,8 @@ SettingsView {
|
|||||||
|
|
||||||
property var selectedAddress
|
property var selectedAddress
|
||||||
|
|
||||||
|
signal bugReportWasSent()
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: qsTr("Report a problem")
|
text: qsTr("Report a problem")
|
||||||
colorScheme: root.colorScheme
|
colorScheme: root.colorScheme
|
||||||
@ -61,7 +63,7 @@ SettingsView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
// Rise max length error imidiatly while typing
|
// Rise max length error immediately while typing
|
||||||
if (description.text.length > description._maxLength) {
|
if (description.text.length > description._maxLength) {
|
||||||
validate()
|
validate()
|
||||||
}
|
}
|
||||||
@ -164,6 +166,7 @@ SettingsView {
|
|||||||
Connections {
|
Connections {
|
||||||
target: Backend
|
target: Backend
|
||||||
function onReportBugFinished() { sendButton.loading = false }
|
function onReportBugFinished() { sendButton.loading = false }
|
||||||
|
function onBugReportSendSuccess() { root.bugReportWasSent() }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -359,6 +359,10 @@ Item {
|
|||||||
onBack: {
|
onBack: {
|
||||||
rightContent.showHelpView()
|
rightContent.showHelpView()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onBugReportWasSent: {
|
||||||
|
rightContent.showAccount()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showAccount(index) {
|
function showAccount(index) {
|
||||||
|
|||||||
Reference in New Issue
Block a user