summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-02-07 13:30:33 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2017-02-07 13:30:33 +0100
commitbc66944248bf62816f830b5769449c2c3a9dbd04 (patch)
tree10c3b22141af43ae2039552f9c2b2a086312d210 /app/assets/javascripts
parent1664354c65c103bd3ad55ebe32e84635bef22a6d (diff)
downloadgitlab-ce-bc66944248bf62816f830b5769449c2c3a9dbd04.tar.gz
Fix stoppable?
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/environments/components/environment_item.js.es68
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/environments/components/environment_item.js.es6 b/app/assets/javascripts/environments/components/environment_item.js.es6
index 521873b14b4..8efeb011ca1 100644
--- a/app/assets/javascripts/environments/components/environment_item.js.es6
+++ b/app/assets/javascripts/environments/components/environment_item.js.es6
@@ -147,12 +147,12 @@ require('./environment_terminal_button');
},
/**
- * Returns the value of the `stoppable?` key provided in the response.
+ * Returns the value of the `stop_action?` key provided in the response.
*
* @returns {Boolean}
*/
- isStoppable() {
- return this.model['stoppable?'];
+ hasStopAction() {
+ return this.model['stop_action?'];
},
/**
@@ -508,7 +508,7 @@ require('./environment_terminal_button');
</external-url-component>
</div>
- <div v-if="isStoppable && canCreateDeployment"
+ <div v-if="hasStopAction && canCreateDeployment"
class="inline js-stop-component-container">
<stop-component
:stop-url="model.stop_path">