From 18ae413ec53f4ab08561e705cfd869db3caeac1c Mon Sep 17 00:00:00 2001 From: fujr Date: Thu, 24 Oct 2024 23:16:02 +0800 Subject: [PATCH] Refactor json entry functions to have a non translate classname --- luci/luci-app-qmodem/root/usr/share/qmodem/generic.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/luci/luci-app-qmodem/root/usr/share/qmodem/generic.sh b/luci/luci-app-qmodem/root/usr/share/qmodem/generic.sh index b667b96..1b5551a 100755 --- a/luci/luci-app-qmodem/root/usr/share/qmodem/generic.sh +++ b/luci/luci-app-qmodem/root/usr/share/qmodem/generic.sh @@ -18,6 +18,7 @@ add_plain_info_entry() json_add_string "type" "plain_text" if [ -n "$class" ]; then json_add_string "class" "$class" + json_add_string "class_origin" "$class" fi json_close_object } @@ -37,6 +38,7 @@ add_warning_message_entry() json_add_string "full_name" "$key_full_name" json_add_string "type" "warning_message" json_add_string "class" "warning" + json_add_string "class_origin" "warning" json_close_object } @@ -62,6 +64,7 @@ add_bar_info_entry() json_add_string "type" "progress_bar" if [ -n "$class" ]; then json_add_string "class" "$class" + json_add_string "class_origin" "$class" fi json_close_object }