mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
Add storage refresh on item assignment [SCI-11140]
This commit is contained in:
parent
3a792ea737
commit
49d88b66c4
1 changed files with 7 additions and 4 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue