From c5d3523f8d91fac86d2f317971c874f902baf4b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E8=BE=B0=E8=BD=A9?= Date: Tue, 25 Jun 2024 10:11:03 +0800 Subject: [PATCH] * Modify or to includes. --- module/execution/js/taskkanban.ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/js/taskkanban.ui.js b/module/execution/js/taskkanban.ui.js index 3d698be23e..1e94603280 100644 --- a/module/execution/js/taskkanban.ui.js +++ b/module/execution/js/taskkanban.ui.js @@ -132,7 +132,7 @@ window.getColActions = function(col) let actionList = []; /* 父列不需要创建卡片相关的操作按钮。 */ - if(col.parent != '-1' && (col.type == 'backlog' || col.type == 'unconfirmed' || col.type == 'wait' || col.type == 'active')) + if(col.parent != '-1' && (['backlog', 'unconfirmed', 'wait', 'active'].includes(col.type))) { let cardActions = buildColCardActions(col); if(cardActions.length > 0) actionList.push({type:'dropdown', icon:'expand-alt text-primary', caret:false, items:cardActions});