We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c3b872 commit 02ec268Copy full SHA for 02ec268
1 file changed
frontend/packages/web/src/components/business/crm-stage-board/list.vue
@@ -106,8 +106,12 @@
106
const { t } = useI18n();
107
108
const stageColor = computed(() => {
109
- const isSuccess = props.stage?.type === 'END' && String(props.stage?.rate) === '100';
110
- const isFail = props.stage?.type === 'END' && String(props.stage?.rate) === '0';
+ const isSuccess =
+ (props.stage?.type === 'END' && String(props.stage?.rate) === '100') ||
111
+ (props.stage?.type === 'END' && ['COMPLETED', 'ARCHIVED'].includes(props.stage.id));
112
+ const isFail =
113
+ (props.stage?.type === 'END' && String(props.stage?.rate) === '0') ||
114
+ (props.stage?.type === 'END' && ['VOIDED'].includes(props.stage.id));
115
116
if (isSuccess) {
117
return 'success';
0 commit comments