From 2ef76e8acee23c344335b0118aadd5de96a7dfff Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Mon, 4 Nov 2024 09:31:26 -0300 Subject: [WIP] Add review functionality --- kodereviewer/qml/ReviewList.qml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'kodereviewer/qml/ReviewList.qml') 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() + } + } } } } -- cgit v1.2.3-70-g09d2