when the stealth mode is enabled, log out cloud service and hide sideboard (#13531)

* when the stealth mode is enabled, log out cloud service and hide sideboard

* update tooltip
This commit is contained in:
SoftFever
2026-05-09 00:46:41 +08:00
committed by GitHub
parent 447d4452e6
commit e42ff0b57d
7 changed files with 63 additions and 6 deletions

View File

@@ -71,6 +71,7 @@ body
#LeftBoard
{
display: none; /* shown by cloud_providers_info from backend */
border-right-width: 1px;
border-right-style: solid;
width:262px;

View File

@@ -103,11 +103,20 @@ function HandleStudio( pVal )
GotoMenu(strName);
} else if (strCmd == "cloud_providers_info") {
if (pVal["data"]["providers"] && pVal["data"]["providers"].indexOf("bbl") >= 0) {
var providers = (pVal["data"] && pVal["data"]["providers"]) || [];
if (providers.indexOf("bbl") >= 0) {
$("#BambuCloudSection").show();
} else {
SetBambuUserOffline();
$("#BambuCloudSection").hide();
}
if (providers.indexOf("orca") >= 0) {
$("#LeftBoard").show();
} else {
$("#LeftBoard").hide();
}
} else if (strCmd == "network_plugin_installtip") {
let nShow = pVal["show"] * 1;