From e674f6c315849542fbd1c9f1deac37aa6422d22b Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Fri, 23 Dec 2016 13:46:21 -0800 Subject: [PATCH] Move visualize/landing route to live at visualize/ instead. --- .../kibana/public/visualize/index.js | 7 +++-- .../public/visualize/landing/landing.js | 11 -------- .../visualize_listing.html} | 28 +++++++++---------- .../visualize_listing.js} | 2 +- 4 files changed, 20 insertions(+), 28 deletions(-) delete mode 100644 src/core_plugins/kibana/public/visualize/landing/landing.js rename src/core_plugins/kibana/public/visualize/{landing/visualize_landing.html => listing/visualize_listing.html} (82%) rename src/core_plugins/kibana/public/visualize/{landing/visualize_landing.js => listing/visualize_listing.js} (97%) diff --git a/src/core_plugins/kibana/public/visualize/index.js b/src/core_plugins/kibana/public/visualize/index.js index 21154c7ca46b6..e362b15f771ee 100644 --- a/src/core_plugins/kibana/public/visualize/index.js +++ b/src/core_plugins/kibana/public/visualize/index.js @@ -1,6 +1,5 @@ import 'plugins/kibana/visualize/styles/main.less'; import 'plugins/kibana/visualize/editor/editor'; -import 'plugins/kibana/visualize/landing/landing'; import 'plugins/kibana/visualize/wizard/wizard'; import 'plugins/kibana/visualize/editor/add_bucket_agg'; import 'plugins/kibana/visualize/editor/agg'; @@ -19,13 +18,17 @@ import 'plugins/kibana/visualize/saved_visualizations/_saved_vis'; import 'plugins/kibana/visualize/saved_visualizations/saved_visualizations'; import uiRoutes from 'ui/routes'; +import visualizeListingTemplate from './listing/visualize_listing.html'; +import { VisualizeListingController } from './listing/visualize_listing'; uiRoutes .defaults(/visualize/, { requireDefaultIndex: true }) .when('/visualize', { - redirectTo: '/visualize/landing' + template: visualizeListingTemplate, + controller: VisualizeListingController, + controllerAs: 'listingController', }); // preloading diff --git a/src/core_plugins/kibana/public/visualize/landing/landing.js b/src/core_plugins/kibana/public/visualize/landing/landing.js deleted file mode 100644 index bd563b0aa00e5..0000000000000 --- a/src/core_plugins/kibana/public/visualize/landing/landing.js +++ /dev/null @@ -1,11 +0,0 @@ -import routes from 'ui/routes'; -import modules from 'ui/modules'; -import visualizeLandingTemplate from './visualize_landing.html'; -import { VisualizeLandingController } from './visualize_landing'; - -routes -.when('/visualize/landing', { - template: visualizeLandingTemplate, - controller: VisualizeLandingController, - controllerAs: 'landingController', -}); diff --git a/src/core_plugins/kibana/public/visualize/landing/visualize_landing.html b/src/core_plugins/kibana/public/visualize/listing/visualize_listing.html similarity index 82% rename from src/core_plugins/kibana/public/visualize/landing/visualize_landing.html rename to src/core_plugins/kibana/public/visualize/listing/visualize_listing.html index 08a566a2a9694..df487b7734716 100644 --- a/src/core_plugins/kibana/public/visualize/landing/visualize_landing.html +++ b/src/core_plugins/kibana/public/visualize/listing/visualize_listing.html @@ -25,7 +25,7 @@ type="text" placeholder="Search..." aria-label="Filter" - ng-model="landingController.filter" + ng-model="listingController.filter" > @@ -34,10 +34,10 @@