show port error disable state in device ports view

This commit is contained in:
Oliver Gorwits
2018-02-22 07:27:11 +00:00
parent 5584865052
commit b69ad22a52
5 changed files with 42 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ get '/ajax/content/device/ports' => require_login sub {
my $device = schema('netdisco')->resultset('Device')
->search_for_device($q) or send_error('Bad device', 400);
my $set = $device->ports;
my $set = $device->ports->with_properties;
# refine by ports if requested
my $f = param('f');