Skip to content
Snippets Groups Projects

Add deployment approval UI MVC

Merged Andrew Fontaine requested to merge afontaine/deployment-approval into master
All threads resolved!
@@ -50,10 +50,10 @@ export default {
@@ -50,10 +50,10 @@ export default {
this.show = true;
this.show = true;
},
},
approve() {
approve() {
return this.actOnDeployment(Api.approveDeployment);
return this.actOnDeployment(Api.approveDeployment.bind(Api));
},
},
reject() {
reject() {
return this.actOnDeployment(Api.rejectDeployment);
return this.actOnDeployment(Api.rejectDeployment.bind(Api));
},
},
actOnDeployment(action) {
actOnDeployment(action) {
this.loading = true;
this.loading = true;
Loading