mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-22 20:53:40 +09:00
fix: make the merge box button red if some checks fail (#38508)
fix #38506 * 1.26: the "show form" button and "submit form" button are all red if some checks fail * 1.27.0: the "show form" button uses primary color, while "submit form" button is red if some checks fail * this fix: revert to 1.26
This commit is contained in:
@@ -39,6 +39,7 @@ const mergeButtonStyleClass = computed(() => {
|
|||||||
const mergeSelectStyleClass = computed(() => {
|
const mergeSelectStyleClass = computed(() => {
|
||||||
if (mergeForm.emptyCommit) return '';
|
if (mergeForm.emptyCommit) return '';
|
||||||
if (mergeStyle.value === mergeStyleManuallyMerged) return 'red';
|
if (mergeStyle.value === mergeStyleManuallyMerged) return 'red';
|
||||||
|
if (!mergeForm.allOverridableChecksOk) return 'red';
|
||||||
return 'primary';
|
return 'primary';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user