summaryrefslogtreecommitdiff
path: root/kodereviewer/qml/ReviewDialog.qml
diff options
context:
space:
mode:
Diffstat (limited to 'kodereviewer/qml/ReviewDialog.qml')
-rw-r--r--kodereviewer/qml/ReviewDialog.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/kodereviewer/qml/ReviewDialog.qml b/kodereviewer/qml/ReviewDialog.qml
index 7dcaf9c..9965673 100644
--- a/kodereviewer/qml/ReviewDialog.qml
+++ b/kodereviewer/qml/ReviewDialog.qml
@@ -51,6 +51,10 @@ Kirigami.Dialog {
}
function requiredFieldsFilled() {
+ // Approve doesn't need a message.
+ if (event == 'APPROVE') {
+ return true
+ }
return event != '' && reviewBodyText != ''
}
@@ -58,7 +62,7 @@ Kirigami.Dialog {
reviewBodyText = ''
approveRadioButton.checked = false
commentRadioButton.checked = false
- requestChangesRadioButton = false
+ requestChangesRadioButton.checked = false
event = ''
}