Show size limit exceptions in the tree, if when expanding a tree branch the container has more items
This commit is contained in:
parent
45953b4e41
commit
e667d139b0
@ -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
|
||||
|
@ -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
2
public/js/custom.js
vendored
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user