Skip to content

Commit b3ec704

Browse files
committed
Fix option overlay 'not supported' fallback, rename combo strategies
1 parent 64b526b commit b3ec704

4 files changed

Lines changed: 8 additions & 15 deletions

File tree

web/strategy-switch-console/index.html

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3835,15 +3835,8 @@ <h2 data-i18n="summary">切换摘要</h2>
38353835
}
38363836
el("option-overlay-mode-meta").textContent = optionOverlayDefaultMetaText(optionDefaults);
38373837
} else {
3838-
optionOverlayModeSelect.disabled = false;
3839-
const rawMode = normalizeOptionOverlayMode(form.optionOverlayMode);
3840-
const mode = rawMode === "disabled" ? "disabled" : "current";
3841-
for (const option of [
3842-
new Option(t("optionOverlayCurrent"), "current", false, mode === "current"),
3843-
new Option(t("optionOverlayDisabled"), "disabled", false, mode === "disabled"),
3844-
]) {
3845-
optionOverlayModeSelect.append(option);
3846-
}
3838+
optionOverlayModeSelect.disabled = true;
3839+
optionOverlayModeSelect.append(new Option(t("optionOverlayNotSupported"), "current"));
38473840
el("option-overlay-mode-meta").textContent = t("optionOverlayModeMeta");
38483841
}
38493842

web/strategy-switch-console/page_asset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/strategy-switch-console/strategy-profiles.example.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
"profile": "us_equity_combo_leveraged",
154154
"label": "US Alpha Combo",
155155
"label_en": "US Equity Combo Leveraged",
156-
"label_zh": "美股Alpha组合",
156+
"label_zh": "美股加速组合",
157157
"domain": "us_equity",
158158
"runtime_enabled": true,
159159
"combo_enabled": true,
@@ -179,7 +179,7 @@
179179
"profile": "hk_equity_combo",
180180
"label": "HK Core Combo",
181181
"label_en": "HK Equity Combo",
182-
"label_zh": "港股核心组合",
182+
"label_zh": "港股恒生组合",
183183
"domain": "hk_equity",
184184
"runtime_enabled": true,
185185
"combo_enabled": true,
@@ -213,7 +213,7 @@
213213
"profile": "cn_equity_combo",
214214
"label": "CN Alpha Combo",
215215
"label_en": "CN Equity Combo",
216-
"label_zh": "A股Alpha组合",
216+
"label_zh": "A股进取组合",
217217
"domain": "cn_equity",
218218
"runtime_enabled": true,
219219
"combo_enabled": true,
@@ -239,7 +239,7 @@
239239
"profile": "crypto_equity_combo",
240240
"label": "Crypto Core Combo",
241241
"label_en": "Crypto Equity Combo",
242-
"label_zh": "加密核心组合",
242+
"label_zh": "加密动量组合",
243243
"domain": "crypto",
244244
"runtime_enabled": true,
245245
"combo_enabled": true,

web/strategy-switch-console/strategy_profiles_asset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)