mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Do not show lock config, if in non-UI mode
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
$(document).ready(function () {
|
||||
performTranslation();
|
||||
|
||||
let isGuiMode = window.sysInfo.hyperion.isGuiMode;
|
||||
const CEC_ENABLED = (jQuery.inArray("cec", window.serverInfo.services) !== -1);
|
||||
|
||||
let conf_editor_osEvents = null;
|
||||
@@ -76,6 +77,12 @@ $(document).ready(function () {
|
||||
osEvents: window.schema.osEvents
|
||||
}, true, true);
|
||||
|
||||
conf_editor_osEvents.on('ready', function () {
|
||||
if (!isGuiMode) {
|
||||
showInputOptionsForKey(conf_editor_osEvents, "osEvents", "suspendEnable", false);
|
||||
}
|
||||
});
|
||||
|
||||
conf_editor_osEvents.on('change', function () {
|
||||
conf_editor_osEvents.validate().length || window.readOnlyMode ? $('#btn_submit_os_events').prop('disabled', true) : $('#btn_submit_os_events').prop('disabled', false);
|
||||
});
|
||||
|
Reference in New Issue
Block a user