summaryrefslogtreecommitdiff
path: root/kodereviewer/qml/ReviewList.qml
diff options
context:
space:
mode:
authorMatias Linares <matias.linares@comprandoengrupo.net>2024-11-04 09:31:26 -0300
committerMatias Linares <matias.linares@comprandoengrupo.net>2024-11-24 11:21:41 -0300
commit2ef76e8acee23c344335b0118aadd5de96a7dfff (patch)
tree1eb1fa059ddf07d00834f569611f1ca2e33a961a /kodereviewer/qml/ReviewList.qml
parent45f03bfb30ea29dd62c0aba3fbe0c002dcdc807a (diff)
downloadkodereviewer-translations.tar.gz
[WIP] Add review functionalitytranslationsmain
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()
+ }
+ }
}
}
}