Fix typo in qmodem_mwan.sh and update warning message handling in modem_info.htm

This commit is contained in:
fujr 2024-10-24 15:11:53 +08:00
parent 400fb27b1b
commit 79adc501c2
2 changed files with 3 additions and 5 deletions

View File

@ -333,7 +333,7 @@ class ModemInfo {
for (let entry of data){
let class_name,full_name,value,type;
class_name = entry.class;
if (class_name == "warning") {
if (type == "warning_message") {
warning_message.push(entry);
continue;
}

View File

@ -35,10 +35,8 @@ add_warning_message_entry()
json_add_string key "$key"
json_add_string value "$value"
json_add_string "full_name" "$key_full_name"
json_add_string "type" "warnning_message"
if [ -n "$class" ]; then
json_add_string "class" "$class"
fi
json_add_string "type" "warning_message"
json_add_string "class" "warning"
json_close_object
}