Display custom types as in the config file (with ucwords) (#11367)

* Display custom types as in the config file (with ucwords)

* filter same line
This commit is contained in:
Tony Murray
2020-04-02 16:38:38 -05:00
committed by GitHub
parent 69280b3501
commit 7d2a1ae799
2 changed files with 8 additions and 9 deletions

View File

@@ -83,11 +83,7 @@ class MenuComposer
$vars['port_counts']['pseudowire'] = Config::get('enable_pseudowires') ? ObjectCache::portCounts(['pseudowire'])['pseudowire'] : 0;
$vars['port_counts']['alerted'] = 0; // not actually supported on old...
$vars['custom_port_descr'] = collect(Config::get('custom_descr', []))
->filter()
->map(function ($descr) {
return strtolower($descr);
});
$vars['custom_port_descr'] = collect(Config::get('custom_descr', []))->filter();
$vars['port_groups_exist'] = Config::get('int_customers') ||
Config::get('int_transit') ||
Config::get('int_peering') ||