fix(mq): hide new-query entry for message queue connections
This commit is contained in:
1 parent
d0b9e49b7e
commit
4b64656069
4 files changed
+21
-1
No files matched your search
@@ -117,9 +117,14 @@ export function supportsClearableQuerySchema(dbType?: DatabaseType): boolean {
|
||||
* so the sidebar "new query" flow would call list-databases and fail
|
||||
* (issue #8215). It is excluded alongside the other specialized surfaces
|
||||
* (nacos, consul, hbase) whose connection workbench replaces query tabs.
|
||||
*
|
||||
* The message-queue surfaces (`mq` — Pulsar/Kafka/RocketMQ/RabbitMQ — and
|
||||
* `mqtt`) belong to the same group: brokers have no SQL engine, and their
|
||||
* workbench is the MQ/MQTT admin tab. The sidebar entry used to open a plain
|
||||
* SQL editor against a broker (issue #8415).
|
||||
*/
|
||||
export function supportsConnectionQueryActions(dbType?: DatabaseType): boolean {
|
||||
return dbType !== "nacos" && dbType !== "consul" && dbType !== "hbase" && dbType !== "zookeeper";
|
||||
return dbType !== "nacos" && dbType !== "consul" && dbType !== "hbase" && dbType !== "zookeeper" && dbType !== "mq" && dbType !== "mqtt";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user