Show the echo test for the webclient only
This commit is contained in:
parent
46d9ead8ba
commit
bfeeeebb18
1 changed files with 9 additions and 7 deletions
|
@ -171,13 +171,15 @@ function renderToolItems() : MenuBarEntry[] {
|
||||||
const items: MenuBarEntry[] = [];
|
const items: MenuBarEntry[] = [];
|
||||||
|
|
||||||
const currentConnectionConnected = !!server_connections.active_connection()?.connected;
|
const currentConnectionConnected = !!server_connections.active_connection()?.connected;
|
||||||
items.push({
|
if(__build.target === "web") {
|
||||||
type: "normal",
|
items.push({
|
||||||
label: tr("Echo Test"),
|
type: "normal",
|
||||||
icon: ClientIcon.ActivateMicrophone,
|
label: tr("Echo Test"),
|
||||||
click: () => global_client_actions.fire("action_open_window", { window: "server-echo-test" }),
|
icon: ClientIcon.ActivateMicrophone,
|
||||||
disabled: !currentConnectionConnected
|
click: () => global_client_actions.fire("action_open_window", { window: "server-echo-test" }),
|
||||||
});
|
disabled: !currentConnectionConnected
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
items.push({
|
items.push({
|
||||||
type: "normal",
|
type: "normal",
|
||||||
|
|
Loading…
Add table
Reference in a new issue