mirror of https://github.com/Aidaho12/haproxy-wi
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
parent
41a8c90556
commit
9148a31143
|
@ -186,7 +186,7 @@ def telegram_send_mess(mess, level, **kwargs):
|
||||||
channel_name = telegram.chanel_name
|
channel_name = telegram.chanel_name
|
||||||
|
|
||||||
if token_bot == '' or channel_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)
|
roxywi_common.logging('Roxy-WI server', mess, roxywi=1)
|
||||||
|
|
||||||
if proxy is not None and proxy != '' and proxy != 'None':
|
if proxy is not None and proxy != '' and proxy != 'None':
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue