Unverified Commit 6564a504 authored by Aysam Guerler's avatar Aysam Guerler Committed by GitHub
Browse files

Merge pull request #14076 from assuntad23/13382/bugfix/rule-builder-modal-continuity

Prevent user from closing the rule builder modal when clicking outside of it
parents 66b92bf0 7b2f2858
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@ function ruleBasedCollectionCreatorModal(elements, elementsType, importType, opt
        title = _l("Build Rules for Uploading Collections");
    }
    options.title = title;
    // Prevents user from accidentally closing the modal by clicking outside the bounds
    options.closing_events = false;
    const { promise, showEl } = collectionCreatorModalSetup(options);
    return import(/* webpackChunkName: "ruleCollectionBuilder" */ "components/RuleCollectionBuilder.vue").then(
        (module) => {
+2 −1
Original line number Diff line number Diff line
@@ -16,13 +16,14 @@ export function collectionCreatorModalSetup(options, Galaxy = null) {
        };
    });
    const showEl = function (el) {
        const close_event = options.closing_events === undefined || options.closing_events;
        modal.show({
            title: options.title || _l("Create a collection"),
            body: el,
            width: "85%",
            height: "100%",
            xlarge: true,
            closing_events: true,
            closing_events: close_event,
        });
    };
    return { promise, options, showEl };