diff --git a/src/core_plugins/kibana/public/dashboard/dashboard.js b/src/core_plugins/kibana/public/dashboard/dashboard.js index 2c9ae491664bd..7527daf2ab198 100644 --- a/src/core_plugins/kibana/public/dashboard/dashboard.js +++ b/src/core_plugins/kibana/public/dashboard/dashboard.js @@ -24,7 +24,6 @@ import { DashboardState } from './dashboard_state'; import { notify } from 'ui/notify'; import { documentationLinks } from 'ui/documentation_links/documentation_links'; import { showCloneModal } from './top_nav/show_clone_modal'; -import { DashboardCloneModal } from './top_nav/clone_modal'; const app = uiModules.get('app/dashboard', [ 'elasticsearch', @@ -33,13 +32,8 @@ const app = uiModules.get('app/dashboard', [ 'kibana/config', 'kibana/notify', 'kibana/typeahead', - 'react', ]); -app.directive('dashboardCloneModal', function (reactDirective) { - return reactDirective(DashboardCloneModal); -}); - uiRoutes .when(DashboardConstants.CREATE_NEW_DASHBOARD_URL, { template: dashboardTemplate, diff --git a/src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/clone_modal.test.js.snap b/src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/clone_modal.test.js.snap index d1b203622b85a..95dcfe48e6287 100644 --- a/src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/clone_modal.test.js.snap +++ b/src/core_plugins/kibana/public/dashboard/top_nav/__snapshots__/clone_modal.test.js.snap @@ -2,64 +2,68 @@ exports[`renders DashboardCloneModal 1`] = `