From 7a17d76e013ef636037da2422458ee2c48fd0618 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Thu, 22 Jun 2017 07:55:03 +0000 Subject: Merge branch '33853-environments-buttons' into 'master' Only show gray footer space if environment actions exist Closes #33853 See merge request !12315 --- .../environments/components/environment_item.vue | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/environments/components/environment_item.vue b/app/assets/javascripts/environments/components/environment_item.vue index de2269118cd..9b9e83a54f1 100644 --- a/app/assets/javascripts/environments/components/environment_item.vue +++ b/app/assets/javascripts/environments/components/environment_item.vue @@ -403,6 +403,14 @@ export default { return ''; }, + displayEnvironmentActions() { + return this.hasManualActions || + this.externalURL || + this.monitoringUrl || + this.hasStopAction || + this.canRetry; + }, + /** * Constructs folder URL based on the current location and the folder id. * @@ -535,10 +543,13 @@ export default { -