diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-02-07 13:30:33 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-02-07 13:30:33 +0100 |
commit | bc66944248bf62816f830b5769449c2c3a9dbd04 (patch) | |
tree | 10c3b22141af43ae2039552f9c2b2a086312d210 /app/assets/javascripts | |
parent | 1664354c65c103bd3ad55ebe32e84635bef22a6d (diff) | |
download | gitlab-ce-bc66944248bf62816f830b5769449c2c3a9dbd04.tar.gz |
Fix stoppable?
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/environments/components/environment_item.js.es6 | 8 |
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"> |