Merge pull request #14493 from assuntad23/14200/bug/update_history_in_collection

watching historyID for change, if it changes, close the CollectionPanel
This commit is contained in:
Dannon
2022-08-23 21:37:39 -04:00
committed by GitHub
@@ -83,6 +83,14 @@ export default {
return this.dsc.contents_url.substring(1);
},
},
watch: {
history(newHistory, oldHistory) {
if (newHistory.id != oldHistory.id) {
// Send up event closing out selected collection on history change.
this.$emit("update:selected-collections", []);
}
},
},
methods: {
updateDsc(collection, fields) {
updateContentFields(collection, fields).then((response) => {