TWSD-1377 - [WebUI] HSOL-4147 / Improvement: "vpn resource groupitem network + hostname" CLI DNS name resolution behavior
Review Request #1192 — Created Nov. 26, 2025 and submitted
| Information | |
|---|---|
| shuinvy | |
| AG | |
| rel_ag_9_4_5 | |
| TWSD-1377 | |
| Reviewers | |
| austin, evalin, jasonchou, lucille, milliechou, peteryeh | |
Show warning message in WebUI after user login if the vpn resource group reach maximum
- Add div block in welcome.html
- Use timer in JS to check if there is variable start from "AN_res_limit_check" because it is generated by c, there will be time delay.
- Get the only variable start from "AN_res_limit_check", such as "_AN_res_limit_check_vpn_resource_g1", then get the group name. in this case, the group name is "vpn_resource_g1"
- Get the value for the variable.
- Check is the group name and value is valid (not null or empry data), then use jQuery to set message for the div block.
I have checked with C engineer, the variable will only one group for each Vsite.
so I can just break the process after I get the variable:
for (var prop in window) { if (prop.indexOf('_AN_res_limit_check_') !== -1 && typeof window[prop] != "undefined") { foundVariable = window[prop]; groupType = prop.replace('_AN_res_limit_check_', ''); break; // Because there is only one group per virtual site, I just jump our loop after I get the variable. } }
