Merge pull request #7922 from aignatov-bio/ai-sci-11140-add-storage-refresh-on-item-assignment

Add storage refresh on item assignment [SCI-11140]
This commit is contained in:
Martin Artnik 2024-10-03 13:04:22 +02:00 committed by GitHub
commit 1b22228625
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@
v-if="openAssignModal"
assignMode="assign"
:selectedRow="repositoryRow.id"
@close="openAssignModal = false; $emit('reloadRow')"
@close="openAssignModal = false; $emit('reloadRow'); reloadStorageLocations()"
></AssignModal>
<ConfirmationModal
:title="i18n.t('storage_locations.show.unassign_modal.title')"
@ -86,6 +86,11 @@ export default {
}
return '';
},
reloadStorageLocations() {
if (window.StorageLocationsContainer) {
window.StorageLocationsContainer.$refs.container.reloadingTable = true;
}
},
numberToLetter(number) {
return String.fromCharCode(96 + number);
},
@ -95,9 +100,7 @@ export default {
axios.post(unassign_rows_storage_location_path({ id: locationId }), { ids: [rowId] })
.then(() => {
this.$emit('reloadRow');
if (window.StorageLocationsContainer) {
window.StorageLocationsContainer.$refs.container.reloadingTable = true;
}
this.reloadStorageLocations();
});
}
}