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> <div class="flex-grow"></div>
<!-- Actions --> <!-- Actions -->
<div class="flex space-x-2"> <div class="flex space-x-2">
<span class="tooltip left" aria-label="Refetch"> <%= if :refetch in @features do %>
<%= tag :button, class: "icon-button", <span class="tooltip left" aria-label="Refetch">
phx_click: "refetch" %> <%= tag :button, class: "icon-button",
<%= remix_icon("refresh-line", class: "text-xl") %> phx_click: "refetch" %>
</button> <%= remix_icon("refresh-line", class: "text-xl") %>
</span> </button>
</span>
<% end %>
</div> </div>
<!-- Pagination --> <!-- Pagination -->
<%= if :pagination in @features and @total_rows > 0 do %> <%= if :pagination in @features and @total_rows > 0 do %>