user: load run on component creation
This commit is contained in:
parent
c3950fbdd6
commit
aad3358498
|
@ -199,6 +199,16 @@ export default {
|
|||
projectGroupCreateProjectGroupLink("user", this.username, [])
|
||||
);
|
||||
}
|
||||
},
|
||||
created: async function() {
|
||||
if (this.$route.params.runid) {
|
||||
let { data, error } = await fetchRun(this.$route.params.runid);
|
||||
if (error) {
|
||||
this.$store.dispatch("setError", error);
|
||||
return;
|
||||
}
|
||||
this.run = data;
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue