Business intelligence made simple
Hide chart list if no charts
Andrew Kane20858e2c74be
diff --git a/app/views/blazer/dashboards/_form.html.erb b/app/views/blazer/dashboards/_form.html.erbindex c74aa73a..dbe5bf89 100644--- a/app/views/blazer/dashboards/_form.html.erb+++ b/app/views/blazer/dashboards/_form.html.erb@@ -7,7 +7,7 @@<%= f.label :name %><%= f.text_field :name, class: "form-control" %></div>- <div class="form-group">+ <div class="form-group" v-if="queries.length"><%= f.label :charts %><ul id="queries" class="list-group"><li class="list-group-item" v-for="(query, index) in queries" :key="query.id" v-cloak>@@ -21,7 +21,7 @@<%= f.label :query_id, "Add Chart" %><%= select_tag :query_id, nil, {include_blank: true, placeholder: "Select chart"} %></div>- <p style="padding-bottom: 140px;">+ <p style="padding-bottom: 140px;" v-cloak><% if @dashboard.persisted? %><%= link_to "Delete", dashboard_path(@dashboard), method: :delete, "data-confirm" => "Are you sure?", class: "btn btn-danger"%><% end %>