fix typo and disable settings btn rather than hide

This commit is contained in:
Andrew Bauer 2021-01-19 10:32:18 -06:00
parent 15514e1ae1
commit e3fdfa659a
1 changed files with 2 additions and 3 deletions

View File

@ -897,14 +897,13 @@ function initPage() {
}); });
// Manage the SETTINGS button // Manage the SETTINGS button
bindButton('settingsBtn', 'click', null, function onSettingsClick(evt) { bindButton('#settingsBtn', 'click', null, function onSettingsClick(evt) {
evt.preventDefault(); evt.preventDefault();
$j('#settingsModal').modal('show'); $j('#settingsModal').modal('show');
}); });
// Only enable the settings button for local cameras // Only enable the settings button for local cameras
settingsBtn.prop('disabled', !canView.Control); settingsBtn.prop('disabled', !(canView.Control && monitorType == 'Local'));
if ( monitorType != 'Local' ) settingsBtn.hide();
// Init the bootstrap-table // Init the bootstrap-table
if ( monitorType != 'WebSite' ) table.bootstrapTable({icons: icons}); if ( monitorType != 'WebSite' ) table.bootstrapTable({icons: icons});