Show console in navbar when there are no monitors yet defined.

pull/3953/head
Isaac Connor 2024-04-01 09:23:20 -04:00
parent c370cd56cf
commit 40f666129c
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ function getConsoleHTML() {
global $user;
$result = '';
if (count($user->viewableMonitorIds())) {
if (count($user->viewableMonitorIds()) or !ZM\Monitor::find_one()) {
$result .= '<li id="getConsoleHTML" class="nav-item"><a class="nav-link" href="?view=console">'.translate('Console').'</a></li>'.PHP_EOL;
}