aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorIng. Jaroslav Šafka <devel@safka.org>2022-07-13 10:22:51 +0200
committerGitHub <noreply@github.com>2022-07-13 16:22:51 +0800
commit8420c1bf4c46a59973d30af5114216918d0f60cd (patch)
treeecbc9df280a2be760f6d37853d78c62997af5fe0 /web_src
parentb7c6ec91bac5ab0a5382f99a72753574dbc41745 (diff)
downloadgitea-8420c1bf4c46a59973d30af5114216918d0f60cd.tar.gz
gitea-8420c1bf4c46a59973d30af5114216918d0f60cd.zip
Fix checks in PR for empty commits #19603 (#20290)
* Fixes issue #19603 (Not able to merge commit in PR when branches content is same, but different commit id) * fill HeadCommitID in PullRequest * compare real commits ID as check for merging * based on @zeripath patch in #19738
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/components/PullRequestMergeForm.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/components/PullRequestMergeForm.vue b/web_src/js/components/PullRequestMergeForm.vue
index 75fbceb800..08b1f9cb86 100644
--- a/web_src/js/components/PullRequestMergeForm.vue
+++ b/web_src/js/components/PullRequestMergeForm.vue
@@ -48,7 +48,7 @@
<div v-if="!showActionForm" class="df">
<!-- the merge button -->
- <div class="ui buttons merge-button" :class="mergeButtonStyleClass" @click="toggleActionForm(true)" >
+ <div class="ui buttons merge-button" :class="[mergeForm.emptyCommit ? 'grey' : mergeForm.allOverridableChecksOk ? 'green' : 'red']" @click="toggleActionForm(true)" >
<button class="ui button">
<svg-icon name="octicon-git-merge"/>
<span class="button-text">