Skip to content

Commit

Permalink
remove PagedListDisplayMode.Never
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Jan 3, 2024
1 parent 4d91162 commit 21b8a79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Moonglade.Web/PagedList/HtmlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public string PagedListPager(IPagedList pagedList, Func<int, string> generatePag
{
var list = pagedList ?? new BasePagedList<int>(ImmutableList<int>.Empty, 1, 10, 0);

if (options.Display == PagedListDisplayMode.Never || (options.Display == PagedListDisplayMode.IfNeeded && list.PageCount <= 1))
if (options.Display == PagedListDisplayMode.IfNeeded && list.PageCount <= 1)
{
return null;
}
Expand Down
1 change: 0 additions & 1 deletion src/Moonglade.Web/PagedList/PagedListDisplayMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
public enum PagedListDisplayMode
{
Always,
Never,
IfNeeded
}

0 comments on commit 21b8a79

Please sign in to comment.