fix: pr #737
This commit is contained in:
parent
88257cd151
commit
246a905be6
2 changed files with 2 additions and 4 deletions
|
|
@ -6,9 +6,7 @@ defmodule Pinchflat.Pages.HistoryTableLive do
|
||||||
alias Pinchflat.Utils.NumberUtils
|
alias Pinchflat.Utils.NumberUtils
|
||||||
alias PinchflatWeb.CustomComponents.TextComponents
|
alias PinchflatWeb.CustomComponents.TextComponents
|
||||||
|
|
||||||
@limit 5
|
@limit System.get_env("PAGINATION_HISTORY_LIMIT", System.get_env("PAGINATION_LIMIT", "10")) |> String.to_integer() def render(%{records: []} = assigns) do
|
||||||
|
|
||||||
def render(%{records: []} = assigns) do
|
|
||||||
~H"""
|
~H"""
|
||||||
<div class="mb-4 flex items-center">
|
<div class="mb-4 flex items-center">
|
||||||
<.icon_button icon_name="hero-arrow-path" class="h-10 w-10" phx-click="reload_page" />
|
<.icon_button icon_name="hero-arrow-path" class="h-10 w-10" phx-click="reload_page" />
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ defmodule PinchflatWeb.Sources.MediaItemTableLive do
|
||||||
alias Pinchflat.Sources
|
alias Pinchflat.Sources
|
||||||
alias Pinchflat.Utils.NumberUtils
|
alias Pinchflat.Utils.NumberUtils
|
||||||
|
|
||||||
@limit 10
|
@limit System.get_env("PAGINATION_LIMIT", "20") |> String.to_integer()
|
||||||
|
|
||||||
def render(%{total_record_count: 0} = assigns) do
|
def render(%{total_record_count: 0} = assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue