diff options
author | Matias Linares <matias.linares@comprandoengrupo.net> | 2024-11-04 09:31:26 -0300 |
---|---|---|
committer | Matias Linares <matias.linares@comprandoengrupo.net> | 2024-11-24 11:21:41 -0300 |
commit | 2ef76e8acee23c344335b0118aadd5de96a7dfff (patch) | |
tree | 1eb1fa059ddf07d00834f569611f1ca2e33a961a /kodereviewer/qml/ReviewList.qml | |
parent | 45f03bfb30ea29dd62c0aba3fbe0c002dcdc807a (diff) | |
download | kodereviewer-translations.tar.gz |
[WIP] Add review functionalitytranslationsmain
Diffstat (limited to 'kodereviewer/qml/ReviewList.qml')
-rw-r--r-- | kodereviewer/qml/ReviewList.qml | 22 |
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() + } + } } } } |