From f9188eb747f107e9b578b30c0f1a46dea9a47cae Mon Sep 17 00:00:00 2001 From: Wroud Date: Thu, 22 Sep 2022 12:55:51 +0300 Subject: [PATCH] CB-2639 chore: hide devtools switcher --- .../plugin-devtools/src/PluginBootstrap.ts | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/webapp/packages/plugin-devtools/src/PluginBootstrap.ts b/webapp/packages/plugin-devtools/src/PluginBootstrap.ts index cea524c9c0..b8a5356561 100644 --- a/webapp/packages/plugin-devtools/src/PluginBootstrap.ts +++ b/webapp/packages/plugin-devtools/src/PluginBootstrap.ts @@ -54,30 +54,30 @@ export class PluginBootstrap extends Bootstrap { }); - this.actionService.addHandler({ - id: 'devtools', - isActionApplicable: (context, action) => [ - ACTION_DEVTOOLS, - ].includes(action), - isChecked: (context, action) => { + // this.actionService.addHandler({ + // id: 'devtools', + // isActionApplicable: (context, action) => [ + // ACTION_DEVTOOLS, + // ].includes(action), + // isChecked: (context, action) => { - switch (action) { - case ACTION_DEVTOOLS: { - return this.devToolsService.isEnabled; - } - } + // switch (action) { + // case ACTION_DEVTOOLS: { + // return this.devToolsService.isEnabled; + // } + // } - return false; - }, - handler: (context, action) => { - switch (action) { - case ACTION_DEVTOOLS: { - this.devToolsService.switch(); - break; - } - } - }, - }); + // return false; + // }, + // handler: (context, action) => { + // switch (action) { + // case ACTION_DEVTOOLS: { + // this.devToolsService.switch(); + // break; + // } + // } + // }, + // }); this.menuService.addCreator({ isApplicable: context => {