mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-12 06:25:56 +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>
|
<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 %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue