From 399c87bcad5016882b2918fe2d46f4edee6250a0 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 4 Jul 2018 13:33:09 +0100 Subject: Disable the Refresh button if there is no state to refresh --- app/views/mini_environments/show.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/mini_environments/show.html.erb b/app/views/mini_environments/show.html.erb index 0184749..203fb62 100644 --- a/app/views/mini_environments/show.html.erb +++ b/app/views/mini_environments/show.html.erb @@ -95,6 +95,7 @@ License along with the GOV.UK Mini Environment Admin. If not, see <% end %>
  • <%= submit_tag('Refresh', + disabled: @mini_environment.terraform_states.empty?, role: 'button', class: 'btn btn-lg btn-info btn-block') %> -- cgit v1.2.3