fix(mqtt): resolve console labels at render time

This commit is contained in:
Abeautifulsnow authored and GitHub committed 2026-08-11 21:36:10 +08:00
1 parent 801a96a003
commit 8d084cc655
9 files changed
+296 -3

No files matched your search

@@ -127,6 +127,9 @@ export function tabDisplayTitle(tab: QueryTab, t: Translate): string {
if (compact) return connectionDisplayName(tab.connectionId);
return `${connectionDisplayName(tab.connectionId)}@${t("consul.ui.overview")}`;
}
if (tab.mode === "mqtt") {
return `${connectionDisplayName(tab.connectionId)} - ${t("connection.mqttConsoleTitle")}`;
}
if (tab.mode === "objects") {
const schema = tab.objectBrowser?.schema;
if (compact) return schema || tab.title;