Change title of settings button to give an indication WHY it isn't enabled
This commit is contained in:
parent
9fee64b62f
commit
b866888062
|
@ -805,7 +805,15 @@ function initPage() {
|
||||||
if (monitorType == 'Local') getSettingsModal();
|
if (monitorType == 'Local') getSettingsModal();
|
||||||
}
|
}
|
||||||
// Only enable the settings button for local cameras
|
// Only enable the settings button for local cameras
|
||||||
settingsBtn.prop('disabled', !(canView.Control && (monitorType == 'Local')));
|
if (!canView.Control) {
|
||||||
|
settingsBtn.prop('disabled', true);
|
||||||
|
settingsBtn.prop('title', 'Disbled due to lack of Control View permission.');
|
||||||
|
} else if (monitorType != 'Local') {
|
||||||
|
settingsBtn.prop('disabled', true);
|
||||||
|
settingsBtn.prop('title', 'Settings only available for Local monitors.');
|
||||||
|
} else {
|
||||||
|
settingsBtn.prop('disabled', false);
|
||||||
|
}
|
||||||
|
|
||||||
if (monitorType != 'WebSite') {
|
if (monitorType != 'WebSite') {
|
||||||
monitorStream = new MonitorStream(monitorData[monIdx]);
|
monitorStream = new MonitorStream(monitorData[monIdx]);
|
||||||
|
|
Loading…
Reference in New Issue