fixed createDeploy acl

This commit is contained in:
Sebastian Frank 2019-03-06 10:43:28 +01:00
parent 9d1b2eaaf7
commit 1d5cf129dd
Signed by: apairon
GPG Key ID: 7270D06DDA7FE8C3

View File

@ -123,7 +123,7 @@
App.ui.notify(App.i18n.get("A deploy is already in progress, please wait until finishes."), "warning"); App.ui.notify(App.i18n.get("A deploy is already in progress, please wait until finishes."), "warning");
} else { } else {
UIkit.modal.confirm(App.i18n.get("Triggering a new Drone deploy. Are you sure?<br><br>Using build: #") + $this.build, function() { UIkit.modal.confirm(App.i18n.get("Triggering a new Drone deploy. Are you sure?<br><br>Using build: #") + $this.build, function() {
App.callmodule('drone:createDeploy', $this.build).then(function(data) { App.callmodule('drone:createDeploy', $this.build, 'manage.deploy').then(function(data) {
if (!data || !data.result || data.result.error) { if (!data || !data.result || data.result.error) {
if (data && data.result && data.result.error) { if (data && data.result && data.result.error) {
App.ui.notify(App.i18n.get(data.result.error), "danger"); App.ui.notify(App.i18n.get(data.result.error), "danger");