v8.0: Fix section value in admin settings and correct alert message

Removed the unnecessary section reassignment in admin_settings.js to ensure the correct section value is used. Also, corrected a minor formatting issue in the alert message within alerting.py for better readability.
pull/399/head
Aidaho 2024-08-21 09:25:56 +03:00
parent 41a8c90556
commit 9148a31143
2 changed files with 1 additions and 4 deletions

View File

@ -78,9 +78,6 @@ function updateSettings(param, section, val) {
'param': param, 'param': param,
'value': val 'value': val
} }
if (section === 'smon') {
section = 'rmon';
}
$.ajax({ $.ajax({
url: "/admin/settings/" + section, url: "/admin/settings/" + section,
data: JSON.stringify(json_data), data: JSON.stringify(json_data),