From e017a72c0f8b82d3288fa4d966c005287b502be0 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Fri, 6 Dec 2024 15:41:42 +0100 Subject: [PATCH] Fix CollectionCreatorModal being reopened on selection after creating a collection The CollectionCreatorModal.hideModal() function is only called on Cancel or when we explicitly set the prop hideModalOnCreate to true. If we don't set this prop, it leaves the `collectionModalShow` ref set to true as the event to change it to false never gets fired. --- .../CurrentHistory/HistoryOperations/SelectionOperations.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue b/client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue index 28f55ff9385e..5463baab1b59 100644 --- a/client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue +++ b/client/src/components/History/CurrentHistory/HistoryOperations/SelectionOperations.vue @@ -145,6 +145,7 @@ :filter-text="filterText" :selected-items="collectionSelection" :show-modal.sync="collectionModalShow" + hide-modal-on-create default-hide-source-items @created-collection="createdCollection" />