Add storage refresh on item assignment [SCI-11140]

This commit is contained in:
Anton 2024-10-03 13:01:21 +02:00
parent 3a792ea737
commit 49d88b66c4

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();
});
}
}