From cc691005632045e7c1fb92cdddc2be1e796f8d54 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 10 Oct 2023 13:18:38 +0800 Subject: [PATCH] * Modify the release list field display problem. --- module/release/js/browse.ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/release/js/browse.ui.js b/module/release/js/browse.ui.js index ae35ec43de..e043fd7d73 100644 --- a/module/release/js/browse.ui.js +++ b/module/release/js/browse.ui.js @@ -14,7 +14,7 @@ window.renderCell = function(result, {col, row}) result[0] = ''; if(!row.data.build.name) return result; - let branchLabel = showBranch ? "" + row.data.build.branchName + ' ' : ''; + let branchLabel = showBranch ? "" + row.data.build.branchName + ' ' : ''; result[result.length] = {html: branchLabel + "" + row.data.build.name + ''} return result; } @@ -24,7 +24,7 @@ window.renderCell = function(result, {col, row}) result[0] = ''; if(row.data.builds.length == 0) return result; - result[result.length] = {html: row.data.build.projectName}; + result[result.length] = {html: `${row.data.build.projectName}`}; return result; } @@ -48,7 +48,7 @@ window.createSortLink = function(col) */ window.getCellSpan = function(cell) { - if(['id', 'name', 'branch', 'status', 'date', 'actions'].includes(cell.col.name) && cell.row.data.rowspan) + if(['id', 'branchName', 'name', 'branch', 'status', 'date', 'actions'].includes(cell.col.name) && cell.row.data.rowspan) { return {rowSpan: cell.row.data.rowspan}; }