mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
fix(table): sorter invalid
This commit is contained in:
parent
ff7938b90c
commit
902aa28746
32 changed files with 805 additions and 399 deletions
|
@ -33,6 +33,8 @@ func (c ConfigsSort) Less(i, j int) bool {
|
|||
flag = boolToInt(c.ConfigList[i].IsDir) > boolToInt(c.ConfigList[j].IsDir)
|
||||
case "enabled":
|
||||
flag = boolToInt(c.ConfigList[i].Enabled) > boolToInt(c.ConfigList[j].Enabled)
|
||||
case "site_category_id":
|
||||
flag = c.ConfigList[i].SiteCategoryID > c.ConfigList[j].SiteCategoryID
|
||||
}
|
||||
|
||||
if c.Order == "asc" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue