@@ -7,10 +7,15 @@ const entryPointsHeaderInfo = () => [
77] ;
88
99/** Function to return the cell data for a row item. */
10- const cellInfo = ( workflow ) => [
11- { text : workflow . configuration_script_source ? workflow . configuration_script_source . name : '' } ,
12- { text : workflow . name } ,
13- ] ;
10+ const cellInfo = ( workflow ) => {
11+ const isValid = workflow . payload_valid ;
12+ const workflowNameTitle = ! isValid ? `${ workflow . name } (${ __ ( 'Invalid Workflow' ) } )` : workflow . name ;
13+
14+ return [
15+ { text : workflow . configuration_script_source ? workflow . configuration_script_source . name : '' } ,
16+ { text : workflow . name , title : workflowNameTitle } ,
17+ ] ;
18+ } ;
1419
1520/** Function to return the row information for the list */
1621const rowInfo = ( headers , response ) => {
@@ -26,17 +31,6 @@ const rowInfo = (headers, response) => {
2631 } ;
2732 } ) ;
2833
29- // // Sort: valid workflows first (alphabetically), then invalid workflows (alphabetically)
30- // const sortedRows = rows.sort((a, b) => {
31- // // If both have same validity status, sort alphabetically by name
32- // if (a.disabled === b.disabled) {
33- // return a.name.localeCompare(b.name);
34- // }
35- // // Valid workflows come first
36- // return a.disabled ? 1 : -1;
37- // });
38-
39- // const miqRows = rowData(headerKeys, sortedRows, false);
4034 const miqRows = rowData ( headerKeys , rows , false ) ;
4135 return miqRows . rowItems ;
4236} ;
0 commit comments