mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-01 03:38:53 +08:00
Make table refetch an optional feature (#358)
This commit is contained in:
parent
511a47e238
commit
6f724f7146
1 changed files with 8 additions and 6 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue