summaryrefslogtreecommitdiff
path: root/kodereviewer/qml/ReviewList.qml
diff options
context:
space:
mode:
Diffstat (limited to 'kodereviewer/qml/ReviewList.qml')
-rw-r--r--kodereviewer/qml/ReviewList.qml22
1 files changed, 19 insertions, 3 deletions
diff --git a/kodereviewer/qml/ReviewList.qml b/kodereviewer/qml/ReviewList.qml
index 275e433..77a00e0 100644
--- a/kodereviewer/qml/ReviewList.qml
+++ b/kodereviewer/qml/ReviewList.qml
@@ -73,9 +73,25 @@ Kirigami.CardsListView {
}
}
- MarkdownTextArea {
- id: addComment
- Layout.fillWidth: true
+ RowLayout {
+ MarkdownTextArea {
+ id: addComment
+ Layout.fillWidth: true
+ }
+ QQC2.Button {
+ icon.name: "document-send-symbolic"
+ enabled: addComment.text != ''
+
+ onClicked: {
+ if (addComment.text == '') {
+ return
+ }
+
+ root.connection.createComment(root.pullRequest.number, newCommentTextArea.text)
+ newCommentTextArea.text == ''
+ getCommentsTimer.restart()
+ }
+ }
}
}
}