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

This commit is contained in:
Deon George 2025-07-04 19:47:16 +08:00
parent 45953b4e41
commit e667d139b0
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();
}

2
public/js/custom.js vendored
View File

@ -89,7 +89,7 @@ $(document).ready(function() {
types: 'active expanded focus selected' // which status types to store
},
click: function(event,data) {
if (data.targetType === 'title')
if (data.targetType === 'title' && data.node.data.item)
getNode(data.node.data.item);
},
source: sources,