فهرست منبع

Fixed cache message

Andrew Kane 9 سال پیش
والد
کامیت
627763c9bf
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/views/blazer/dashboards/show.html.erb

+ 1 - 1
app/views/blazer/dashboards/show.html.erb

@@ -32,7 +32,7 @@
 
 <div style="margin-bottom: 60px;"></div>
 
-<% if @data_sources.any? { |ds| ds.cache } %>
+<% if @data_sources.any? { |ds| ds.cache_mode != "off" } %>
   <p class="text-muted" style="float: right;">
     Some queries are cached
     <%= link_to "Refresh", refresh_dashboard_path(@dashboard, variable_params), method: :post %>