Always show ptz button, just disbabled with useful tooltip

yuv420
Isaac Connor 2024-07-05 09:34:52 -04:00
parent 55d80d50d7
commit c369826fbf
1 changed files with 6 additions and 6 deletions

View File

@ -261,17 +261,17 @@ echo getNavBarHTML() ?>
<button type="button" id="cycleToggle" class="btn <?php echo $showCycle ? 'btn-primary':'btn-secondary'?>" title="<?php echo translate('Toggle cycle sidebar')?>"> <button type="button" id="cycleToggle" class="btn <?php echo $showCycle ? 'btn-primary':'btn-secondary'?>" title="<?php echo translate('Toggle cycle sidebar')?>">
<span class="material-icons md-18">view_carousel</span> <span class="material-icons md-18">view_carousel</span>
</button> </button>
<button type="button" id="ptzToggle" class="btn <?php echo $showPtzControls ? 'btn-primary':'btn-secondary'?>"
<?php <?php
if ($hasPtzControls) { if ($hasPtzControls) {
?> echo 'title="'.translate('Toggle PTZ Controls').'"';
<button type="button" id="ptzToggle" class="btn <?php echo $showPtzControls ? 'btn-primary':'btn-secondary'?>" title="<?php echo translate('Toggle PTZ Controls')?>">
<span class="material-icons md-18">open_with</span>
</button>
<?php
} else { } else {
echo 'No ptz'; echo 'disabled="disabled" title="'.translate('PTZ Not available').'"';
} }
?> ?>
>
<span class="material-icons md-18">open_with</span>
</button>
<span id="rateControl"> <span id="rateControl">
<label><?php echo translate('Rate') ?>:</label> <label><?php echo translate('Rate') ?>:</label>
<?php <?php