mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-20 00:17:44 +00:00
fix(sidebar): hide the MQTT console leaf expander
This commit is contained in:
@@ -47,6 +47,7 @@ describe("sidebar tree item layout", () => {
|
||||
expect(canTreeNodeShowExpander({ type: "etcd-dashboard", childCount: 0 })).toBe(false);
|
||||
expect(canTreeNodeShowExpander({ type: "etcd-access-control", childCount: 0 })).toBe(false);
|
||||
expect(canTreeNodeShowExpander({ type: "consul-overview", childCount: 0 })).toBe(false);
|
||||
expect(canTreeNodeShowExpander({ type: "mqtt-topic", childCount: 0 })).toBe(false);
|
||||
});
|
||||
|
||||
it("shows an expander only for package nodes explicitly marked as containers", () => {
|
||||
|
||||
@@ -18,6 +18,7 @@ const leafTypes: Set<TreeNodeType> = new Set([
|
||||
"type-method",
|
||||
"object-browser",
|
||||
"redis-db",
|
||||
"mqtt-topic",
|
||||
"mq-tenant",
|
||||
"etcd-root",
|
||||
"etcd-dashboard",
|
||||
|
||||
Reference in New Issue
Block a user