File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 2222 export let runWorkflowModal;
2323 /** @type {{ attribute_filters: { [key: string]: Array<string | number | boolean> | null }, type_filters: { [key: string]: boolean | null }} | null} */
2424 export let initialFilterValues = null ;
25+ /** @type {string[]} */
26+ export let disabledTypes = [];
2527
2628 let showTable = false ;
2729 let firstLoad = true ;
207209 )
208210 ])
209211 );
212+
213+ if (runWorkflowModal) {
214+ for (const [key , typeSelector ] of Object .entries (typesSelectors)) {
215+ if (disabledTypes .includes (key)) {
216+ typeSelector .disable ();
217+ } else {
218+ typeSelector .enable ();
219+ }
220+ }
221+ }
210222 }
211223
212224 /**
Original file line number Diff line number Diff line change 6262 mode !== ' restart' &&
6363 ! isConverterType (workflow .task_list [firstTaskIndex].task_type );
6464
65+ $: disabledTypes = Object .keys ({
66+ ... workflow .task_list [firstTaskIndex || 0 ].type_filters ,
67+ ... workflow .task_list [firstTaskIndex || 0 ].task .input_types
68+ });
69+
6570 /** @type {import('fractal-components/types/api').ImagePage|null} */
6671 let imagePage = null ;
6772 let hasImages = false ;
610615 dataset= {selectedDataset}
611616 bind: imagePage
612617 {initialFilterValues}
618+ {disabledTypes}
613619 vizarrViewerUrl= {null }
614620 runWorkflowModal= {true }
615621 / >
You can’t perform that action at this time.
0 commit comments