Make table refetch an optional feature (#358)

This commit is contained in:
Jonatan Kłosko 2021-06-17 13:21:09 +02:00 committed by GitHub
parent 511a47e238
commit 6f724f7146
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,12 +50,14 @@ defmodule LivebookWeb.Output.TableDynamicLive do
<div class="flex-grow"></div>
<!-- Actions -->
<div class="flex space-x-2">
<span class="tooltip left" aria-label="Refetch">
<%= tag :button, class: "icon-button",
phx_click: "refetch" %>
<%= remix_icon("refresh-line", class: "text-xl") %>
</button>
</span>
<%= if :refetch in @features do %>
<span class="tooltip left" aria-label="Refetch">
<%= tag :button, class: "icon-button",
phx_click: "refetch" %>
<%= remix_icon("refresh-line", class: "text-xl") %>
</button>
</span>
<% end %>
</div>
<!-- Pagination -->
<%= if :pagination in @features and @total_rows > 0 do %>