File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
src/lib/components/v2/workflow Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 66
77 /** @type {Array<import('../types/api').TaskGroupV2>} */
88 export let taskGroups;
9+ export let showAuthorsInSeparateColumn = true ;
910
1011 /** @type {import('../types/api').WorkflowTasksTableRowGroup[]} */
1112 let allRows = [];
244245 const values = [];
245246 // authors, tags
246247 values .push (... taskProperties .tags );
247- if (taskProperties .authors ) {
248+ if (taskProperties .authors && ! showAuthorsInSeparateColumn ) {
248249 values .push (taskProperties .authors );
249250 }
250251 return values .join (' , ' );
351352 < col / >
352353 < col / >
353354 < col / >
355+ {#if showAuthorsInSeparateColumn}
356+ < col / >
357+ {/ if }
354358 < col width= " 120" / >
355359 < slot name= " extra-columns-colgroup" / >
356360 < / colgroup>
360364 < th> Category< / th>
361365 < th> Modality< / th>
362366 < th> Metadata< / th>
367+ {#if showAuthorsInSeparateColumn}
368+ < th> Author< / th>
369+ {/ if }
363370 < th> Version< / th>
364371 < slot name= " extra-columns-header" / >
365372 < / tr>
410417 < td class = " metadata-col" >
411418 {getMetadataCell (task .taskVersions [task .selectedVersion ])}
412419 < / td>
420+ {#if showAuthorsInSeparateColumn}
421+ < td class = " author-col" >
422+ {task .taskVersions [task .selectedVersion ].authors || ' -' }
423+ < / td>
424+ {/ if }
413425 < td class = " version-col" >
414426 {#if Object .keys (task .taskVersions ).length > 1 }
415427 < select
454466 padding- bottom: 12px ;
455467 background: transparent;
456468 }
457- .metadata - col {
469+ .metadata - col,
470+ .author - col {
458471 font- size: 85 % ;
459472 max- width: 150px ;
460473 }
Original file line number Diff line number Diff line change 113113 <span class =" spinner-border spinner-border-sm" role =" status" aria-hidden =" true" />
114114 {/if }
115115 <div class:invisible ={loading } class:collapse ={loading }>
116- <FilteredTasksTable {taskGroups }>
116+ <FilteredTasksTable {taskGroups } showAuthorsInSeparateColumn ={ false } >
117117 <svelte:fragment slot =" extra-columns-colgroup" >
118118 <col width =" 40" />
119119 <col width =" 120" />
You can’t perform that action at this time.
0 commit comments