File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 2424 export let initialFilterValues = null ;
2525 /** @type {string[]} */
2626 export let disabledTypes = [];
27+ export let beforeSelectionChanged = () => {};
2728
2829 let showTable = false ;
2930 let firstLoad = true ;
246247 ariaLabel: ` Selector for attribute ${ key} `
247248 },
248249 events: {
250+ beforeChange : () => {
251+ beforeSelectionChanged ();
252+ return true ;
253+ },
249254 afterChange : (selection ) => {
250255 const value = selection .map ((s ) => s .value );
251256 setter (getTypedValues (key, value));
279284 ariaLabel: ` Selector for type ${ key} `
280285 },
281286 events: {
287+ beforeChange : () => {
288+ beforeSelectionChanged ();
289+ return true ;
290+ },
282291 afterChange : (selection ) => {
283292 const selectedOption = selection[0 ];
284293 if (! selectedOption || selectedOption .placeholder ) {
Original file line number Diff line number Diff line change 618618 {disabledTypes}
619619 vizarrViewerUrl= {null }
620620 runWorkflowModal= {true }
621+ beforeSelectionChanged= {() => (preSubmissionCheckResults = [])}
621622 / >
622623 {/ if }
623624 < / div>
624625 < / div>
625626 < / div>
626627 {#if preSubmissionCheckResults .length > 0 }
627- < div class = " alert alert-danger mt-3" id= " pre-submission-check-error" >
628+ < div class = " alert alert-danger mt-3 alert-dismissible " id= " pre-submission-check-error" >
628629 Image list includes multiple values for the following types:
629630 < ul>
630631 {#each preSubmissionCheckResults as item}
631632 < li>< code> {item}< / code>< / li>
632633 {/ each}
633634 < / ul>
634635 Please select one specific value from the dropdown menu.
636+ < button type= " button" class = " btn-close" data- bs- dismiss= " alert" aria- label= " Close" / >
635637 < / div>
636638 {/ if }
637639 {/ if }
You can’t perform that action at this time.
0 commit comments