Skip to content

Commit 6ccbc97

Browse files
authored
Simplify current config state panel (#26)
1 parent 09461d0 commit 6ccbc97

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

web/strategy-switch-console/index.html

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -877,10 +877,7 @@ <h2 data-i18n="summary">切换摘要</h2>
877877
usEquity: "美股",
878878
hkEquity: "港股",
879879
currentStrategy: "当前策略",
880-
currentMode: "当前模式",
881-
readSource: "读取来源",
882880
nextStrategy: "选择策略",
883-
nextMode: "选择模式",
884881
notRead: "未读取",
885882
publicPreview: "公开示例",
886883
accountConfigLoaded: "账号配置已加载",
@@ -937,10 +934,7 @@ <h2 data-i18n="summary">切换摘要</h2>
937934
usEquity: "US equity",
938935
hkEquity: "HK equity",
939936
currentStrategy: "Current strategy",
940-
currentMode: "Current mode",
941-
readSource: "Read source",
942937
nextStrategy: "Selected strategy",
943-
nextMode: "Selected mode",
944938
notRead: "Not read",
945939
publicPreview: "Public preview",
946940
accountConfigLoaded: "Account config loaded",
@@ -1218,24 +1212,13 @@ <h2 data-i18n="summary">切换摘要</h2>
12181212

12191213
function summaryRows(inputs) {
12201214
const account = selectedAccount();
1221-
const currentEntry = currentEntryForAccount(state.selected, account);
12221215
const currentProfile = currentStrategyForAccount(state.selected, account);
1223-
const currentMode = normalizeExecutionMode(currentEntry?.execution_mode, currentEntry?.dry_run_only);
1224-
const source = currentEntry?.source
1225-
|| (state.configSource === "loading"
1226-
? t("loadingConfig")
1227-
: (state.configSource === "private" ? t("accountConfigLoaded") : t("publicPreview")));
12281216
return [
12291217
[t("repository"), repositories[state.selected]],
12301218
[t("selectedAccount"), account.label],
12311219
[t("currentStrategy"), currentProfile ? strategyLabel(currentProfile) : t("notRead")],
1232-
[t("currentMode"), currentMode ? modeLabel(currentMode) : t("notRead")],
1233-
[t("readSource"), source],
12341220
[t("selectedMarket"), supportedDomainLabel(state.selected, account)],
12351221
[t("nextStrategy"), strategyLabel(inputs.strategy_profile)],
1236-
[t("nextMode"), modeLabel(inputs.execution_mode)],
1237-
[t("action"), t("actionValue")],
1238-
[t("confirm"), inputs.confirm_apply],
12391222
];
12401223
}
12411224

0 commit comments

Comments
 (0)