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

@ -186,7 +186,7 @@ def telegram_send_mess(mess, level, **kwargs):
channel_name = telegram.chanel_name
if token_bot == '' or channel_name == '':
mess = " Can't send message. Add Telegram channel before use alerting at this servers group"
mess = "Can't send message. Add Telegram channel before use alerting at this servers group"
roxywi_common.logging('Roxy-WI server', mess, roxywi=1)
if proxy is not None and proxy != '' and proxy != 'None':

View File

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