Skip to content
Snippets Groups Projects
Commit 8f8c11a2 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'process-load-typeerror' into 'master'

Remove call to non-existing method loadProcess

Closes #816

See merge request !1076
parents 53ea1681 ea84b45b
No related branches found
No related tags found
1 merge request!1076Remove call to non-existing method loadProcess
......@@ -120,14 +120,12 @@ export default {
loading: false,
error: ''
}),
created () {
if (!this.process.id) this.loadProcess()
},
methods: {
...mapActions('process', ['retrieveProcess']),
...mapMutations('process', ['setProcesses']),
...mapMutations('notifications', ['notify']),
async retry () {
if (!this.process.id || this.loading) return
try {
await this.$store.dispatch('process/retryProcess', this.process.id)
await this.$store.dispatch('process/getWorkflow', { url: this.process.workflow })
......@@ -143,7 +141,7 @@ export default {
}
},
async stop () {
if (this.loading) return
if (!this.process.id || this.loading) return
this.loading = true
try {
await this.$store.dispatch('process/stop', { url: this.process.workflow })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment