* Modify or to includes.

This commit is contained in:
宋辰轩
2024-06-25 10:11:03 +08:00
parent 3e8c88d8f8
commit c5d3523f8d
+1 -1
View File
@@ -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});