Replace legacy menu with new Blade generated one (#10173)

* Remove legacy index php file

* fix routing page missing data

* WIP

* fix $navbar global usage

* remove global use of $locations

* ObjectCache again...

* move vars.inc.php to init.php for legacy ajax

* navbar is more local than I thought before.  Fix it.

* Fix some sensors tables escaping

* restore custom menu functionality, but with blade
and docs

* cleanup

* tidy menu @if checks

* Fix up the rest of the global variables and remove print-menubar.php

* consolidate some counting in the menu

* filter out empty custom port descr types

* Fix up custom port groups

* Fix up apps menu

* Fix services menu when all are ok

* Limit cached data to the user it is for

* Fix style

* A few clean ups

* fix pseudowire bug
This commit is contained in:
Tony Murray
2019-05-10 11:02:39 -05:00
committed by GitHub
parent 966ce85c19
commit 9ede688d13
29 changed files with 597 additions and 1513 deletions

View File

@@ -66,9 +66,9 @@ if ($default_dash == 0 && empty($user_dashboards)) {
// $dashboard was requested, but doesn't exist
if (!empty($orig)) {
$msg_box[] = array('type' => 'error', 'message' => 'Dashboard <code>#'.$orig.
'</code> does not exist! Loaded <code>'.$vars['dashboard']['dashboard_name'].
'</code> instead.','title' => 'Requested Dashboard Not Found!');
Toastr::error('Dashboard <code>#' . $orig .
'</code> does not exist! Loaded <code>' . htmlentities($vars['dashboard']['dashboard_name']) .
'</code> instead.', 'Requested Dashboard Not Found!');
}
}
}