diff --git a/client/src/components/Tool/ToolFooter.vue b/client/src/components/Tool/ToolFooter.vue index 991b9788be3..c4ecbde5041 100644 --- a/client/src/components/Tool/ToolFooter.vue +++ b/client/src/components/Tool/ToolFooter.vue @@ -133,18 +133,26 @@ export default { citations: [], }; }, + watch: { + id() { + this.loadCitations(); + }, + }, created() { - if (this.hasCitations) { - getCitations("tools", this.id) - .then((citations) => { - this.citations = citations; - }) - .catch((e) => { - console.error(e); - }); - } + this.loadCitations(); }, methods: { + loadCitations() { + if (this.hasCitations) { + getCitations("tools", this.id) + .then((citations) => { + this.citations = citations; + }) + .catch((e) => { + console.error(e); + }); + } + }, copyBibtex() { var text = ""; this.citations.forEach((citation) => { diff --git a/client/src/components/Workflow/Run/WorkflowRun.vue b/client/src/components/Workflow/Run/WorkflowRun.vue index 18d4e8f5e54..f7986e3500e 100644 --- a/client/src/components/Workflow/Run/WorkflowRun.vue +++ b/client/src/components/Workflow/Run/WorkflowRun.vue @@ -1,6 +1,7 @@