diff options
author | Toon Claes <toon@gitlab.com> | 2017-03-17 17:25:17 +0100 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-03-20 14:39:37 +0100 |
commit | 16cca3a0ea7f4b95e99d7b3e8d4953334fa7bec7 (patch) | |
tree | d45d895d35ab796b2d5f705bdd3554098c949395 /app/assets/javascripts/environments | |
parent | 7a623907528a77187e070c9721469df8bdd00ec8 (diff) | |
download | gitlab-ce-16cca3a0ea7f4b95e99d7b3e8d4953334fa7bec7.tar.gz |
Expose if action is playable in JSON
To avoid a manual build action being played (resulting in a 404),
expose `playable?` in the JSON so the frontend can disable/hide the
play button if it's not playable.
Diffstat (limited to 'app/assets/javascripts/environments')
-rw-r--r-- | app/assets/javascripts/environments/components/environment_item.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/environments/components/environment_item.js b/app/assets/javascripts/environments/components/environment_item.js index 93919d41c60..9d753b4f808 100644 --- a/app/assets/javascripts/environments/components/environment_item.js +++ b/app/assets/javascripts/environments/components/environment_item.js @@ -141,6 +141,7 @@ export default { const parsedAction = { name: gl.text.humanize(action.name), play_path: action.play_path, + playable: action.playable, }; return parsedAction; }); |