mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Even more widget fixes/improvements (#9561)
* Device Summary: don't count deleted ports * General: prevent widget refresh while in settings (synchronize "show_settings" between frontend and backend) * General: reduce reload flicker by delaying clearing of old content until the backend is complete. * Port Select: exclude deleted and orphaned ports
This commit is contained in:
committed by
Neil Lathwood
parent
5d20686d34
commit
ce9790539f
@@ -62,6 +62,8 @@ class PortController extends SelectController
|
||||
{
|
||||
/** @var \Illuminate\Database\Eloquent\Builder $query */
|
||||
$query = Port::hasAccess($request->user())
|
||||
->isNotDeleted()
|
||||
->has('device')
|
||||
->with(['device' => function ($query) {
|
||||
$query->select('device_id', 'hostname', 'sysName');
|
||||
}])
|
||||
|
Reference in New Issue
Block a user