Skip to content

Commit

Permalink
Merge pull request galaxyproject#14493 from assuntad23/14200/bug/upda…
Browse files Browse the repository at this point in the history
…te_history_in_collection

watching historyID for change, if it changes, close the CollectionPanel
  • Loading branch information
dannon authored Aug 24, 2022
2 parents a43eb43 + 083ca72 commit dc6d61c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit dc6d61c

Please sign in to comment.