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:
Tony Murray
2018-12-18 02:02:18 -06:00
committed by Neil Lathwood
parent 5d20686d34
commit ce9790539f
4 changed files with 38 additions and 17 deletions

View File

@@ -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');
}])