diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-11-16 17:05:35 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-11-16 17:05:35 +0000 |
commit | 1571d4686d0fbb41d603ee0deafe208f5d23e5c1 (patch) | |
tree | 9598c24cbcc66a7839f4b80e1a0179c538d585b2 /app/assets/javascripts/environments | |
parent | 9c3f9d84646013b8a9bf605b29d18189693e1c79 (diff) | |
download | gitlab-ce-1571d4686d0fbb41d603ee0deafe208f5d23e5c1.tar.gz |
Fix broken url for stop action
Diffstat (limited to 'app/assets/javascripts/environments')
-rw-r--r-- | app/assets/javascripts/environments/components/environment_stop.js.es6 | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/app/assets/javascripts/environments/components/environment_stop.js.es6 b/app/assets/javascripts/environments/components/environment_stop.js.es6 index b39af2efb57..779d16937ec 100644 --- a/app/assets/javascripts/environments/components/environment_stop.js.es6 +++ b/app/assets/javascripts/environments/components/environment_stop.js.es6 @@ -13,6 +13,12 @@ }, }, + computed: { + stopUrl() { + return `${this.stop_url}/stop`; + }, + }, + methods: { openConfirmDialog() { return window.confirm('Are you sure you want to stop this environment?'); // eslint-disable-line @@ -22,9 +28,9 @@ template: ` <a v-on:click="openConfirmDialog" class="btn stop-env-link" - :href="stop_url" - method="post" - rel="nofollow"> + :href="stopUrl" + data-method="post" + data-rel="nofollow"> <i class="fa fa-stop stop-env-icon"></i> </a> `, |