import { Bootstrap , injectable } from '@cloudbeaver/core-di' ; import { EMainMenu , MainMenuService } from '../../../TopNavBar/MainMenu/MainMenuService' ; import { LogViewerService } from './LogViewerService' ; @ injectable ( ) export class LogViewerBootstrap extends Bootstrap { constructor ( private mainMenuService , private logViewerService ) { super ( ) ; } register ( ) { this . mainMenuService . registerMenuItem ( EMainMenu . mainMenuToolsPanel , { id : 'openLogViewer' , order : 1 , type : 'checkbox' , isChecked : ( ) => this . logViewerService . isActive , title : 'app_shared_toolsMenu_logViewer' , onClick : ( ) => this . logViewerService . toggle ( ) , } ) ; } load ( ) { } }