Show size limit exceptions in the tree, if when expanding a tree branch the container has more items

This commit is contained in:
2025-07-04 19:47:16 +08:00
parent b38edcccf9
commit ff1f33385b
3 changed files with 17 additions and 1 deletions

View File

@@ -329,6 +329,11 @@ final class Server
: NULL;
}
public function hasMore(): bool
{
return (new Entry)->hasMore();
}
/**
* Does this server support RFC3666 language tags
* OID: 1.3.6.1.4.1.4203.1.5.4

View File

@@ -67,6 +67,17 @@ class AjaxController extends Controller
]
: []
)
->push(
config('server')->hasMore()
? [
'title'=>sprintf('[%s]',__('Size Limit')),
'item'=>'',
'lazy'=>FALSE,
'icon'=>'fas fa-fw fa-triangle-exclamation text-danger',
'tooltip'=>__('There may be more entries'),
]
: []
)
->filter()
->values();
}