Skip to content

Commit

Permalink
Fixed import
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Jul 13, 2020
1 parent 65dfb70 commit 646ff78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions src/plugins/home/public/application/components/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,15 @@ export class Home extends Component {
};

renderNormal() {
const { addBasePath, canChangeHomeRoute = true, directories } = this.props;

console.log({ directories });
const { addBasePath, canChangeHomeRoute = true } = this.props;

const fileDataVisualizer = this.findDirectoryById('ml_file_data_visualizer');
const ingestManager = this.findDirectoryById('ingestManager', { isBeta: true });
const security = this.findDirectoryById('security');
const monitoring = this.findDirectoryById('monitoring');
const snapshotRestore = this.findDirectoryById('snapshot_restore');
const indexLifecycleManagement = this.findDirectoryById('index_lifecycle_management');
const devTools = this.findDirectoryById('console');
const console = this.findDirectoryById('console');
const stackManagement = this.findDirectoryById('stack-management');

return (
Expand Down Expand Up @@ -188,16 +186,16 @@ export class Home extends Component {
onClick={createAppNavigationHandler(stackManagement.path)}
iconType="gear"
>
{i18n.translate('home.pageHeader.managementButtonLabel', {
defaultMessage: 'Manage',
{i18n.translate('home.pageHeader.stackManagementButtonLabel', {
defaultMessage: 'Manage stack',
})}
</EuiButtonEmpty>
</EuiFlexItem>
) : null}
{devTools ? (
{console ? (
<EuiFlexItem>
<EuiButtonEmpty
onClick={createAppNavigationHandler(devTools.path)}
onClick={createAppNavigationHandler(console.path)}
iconType="wrench"
>
{i18n.translate('home.pageHeader.devToolsButtonLabel', {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from '../../../../src/plugins/home/public';
import { LicensingPluginSetup } from '../../licensing/public';
import { PLUGIN_ID, CheckPermissionsResponse, PostIngestSetupResponse } from '../common';
import { BASE_PATH } from './constants';
import { BASE_PATH } from './applications/ingest_manager/constants';

import { IngestManagerConfigType } from '../common/types';
import { setupRouteService, appRoutesService } from '../common';
Expand Down

0 comments on commit 646ff78

Please sign in to comment.