浏览代码

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 %>