mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Refresh citation details if tool node changes, augment workflow loading alert.
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<span>
|
||||
<b-alert variant="danger" show v-if="error">
|
||||
<h5>Workflow cannot be executed. Please resolve the following issue:</h5>
|
||||
{{ error }}
|
||||
</b-alert>
|
||||
<span v-else>
|
||||
|
||||
Reference in New Issue
Block a user