disable yellow dot when analysing turned off. Enabled is gone... need to do a more interesting check

This commit is contained in:
Isaac Connor 2022-02-28 13:34:51 -05:00
parent 980aaa5942
commit 433782bd6e
1 changed files with 4 additions and 3 deletions

View File

@ -281,9 +281,10 @@ for ($monitor_i = 0; $monitor_i < count($displayMonitors); $monitor_i += 1) {
$dot_class_reason = $source_class_reason; $dot_class_reason = $source_class_reason;
if ( $function_class != 'infoText' ) { if ( $function_class != 'infoText' ) {
$dot_class = $function_class; $dot_class = $function_class;
} else if (($monitor['Analysing'] == 'Always') and !$monitor['Enabled']) { #} else if (($monitor['Analysing'] == 'Always') and !$monitor['Enabled']) {
$dot_class .= ' warnText'; #$dot_class .= ' warnText';
$dot_class_reason .= ' '.translate('Analysis is disabled'); #$dot_class_reason .= ' '.translate('Analysis is disabled');
#FIXME replace this with a check for runstate vs dbstate
} }
$scale = max(reScale(SCALE_BASE, $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE), SCALE_BASE); $scale = max(reScale(SCALE_BASE, $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE), SCALE_BASE);