Commit bce4f5c6 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Revert "Improve error message when review dialog contents are wrong"

Should go to master, sorry.

This reverts commit f663bd84.
parent f663bd84
......@@ -34,19 +34,20 @@ Kirigami.OverlaySheet
TextArea {
id: reviewInput
readonly property bool acceptableInput: inputIssue.count === 0
readonly property string inputIssue: length < 15 ? i18n("Comment too short") :
length > 3000 ? i18n("Comment too long") : ""
property bool acceptableInput: false
Layout.fillWidth: true
Layout.fillHeight: true
onLengthChanged: {
acceptableInput = length >= 15 && length < 3000
}
}
Button {
id: acceptButton
Layout.alignment: Qt.AlignRight
enabled: summaryInput.acceptableInput && reviewInput.acceptableInput
text: summaryInput.acceptableInput && reviewInput.acceptableInput ? i18n("Accept")
: !summaryInput.acceptableInput ? i18n("Improve summary") : reviewInput.inputIssue
text: i18n("Accept")
onClicked: {
reviewDialog.accepted()
reviewDialog.sheetOpen = false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment