+
@@ -27,7 +27,7 @@
- Loading required information from Galaxy server.
+
@@ -44,6 +44,7 @@ import Composite from "./Composite";
import Collection from "./Collection";
import Default from "./Default";
import RulesInput from "./RulesInput";
+import LoadingSpan from "components/LoadingSpan";
Vue.use(BootstrapVue);
@@ -53,6 +54,7 @@ export default {
Composite,
Default,
RulesInput,
+ LoadingSpan,
},
props: {
modalStatic: {
@@ -101,6 +103,8 @@ export default {
currentUser: null,
listGenomes: [],
listExtensions: [],
+ genomesSet: false,
+ extensionsSet: false,
};
},
created: function () {
@@ -116,19 +120,26 @@ export default {
// load extensions
UploadUtils.getUploadDatatypes(
(listExtensions) => {
+ this.extensionsSet = true;
this.listExtensions = listExtensions;
},
- this.datatypesDisableSuto,
+ this.datatypesDisableAuto,
this.auto
);
// load genomes
UploadUtils.getUploadGenomes((listGenomes) => {
+ this.genomesSet = true;
this.listGenomes = listGenomes;
}, this.defaultGenome);
this.initStateWhenHistoryReady();
},
+ computed: {
+ ready() {
+ return this.genomesSet && this.extensionsSet && this.historyAvailable;
+ },
+ },
methods: {
show() {
this.modalShow = true;