Skip to content

Commit

Permalink
Refactor Visualize Wizard templates to use import syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Feb 4, 2017
1 parent e674f6c commit b129af5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core_plugins/kibana/public/visualize/wizard/wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ import { DashboardConstants } from 'plugins/kibana/dashboard/dashboard_constants
import routes from 'ui/routes';
import RegistryVisTypesProvider from 'ui/registry/vis_types';
import uiModules from 'ui/modules';
import visualizeWizardStep1Template from './step_1.html';
import visualizeWizardStep2Template from './step_2.html';

const module = uiModules.get('app/visualize', ['kibana/courier']);

/********
/** Wizard Step 1
/********/
routes.when('/visualize/step/1', {
template: require('plugins/kibana/visualize/wizard/step_1.html'),
template: visualizeWizardStep1Template,
controller: 'VisualizeWizardStep1',
});

Expand All @@ -40,7 +42,7 @@ module.controller('VisualizeWizardStep1', function ($scope, $route, kbnUrl, time
/** Wizard Step 2
/********/
routes.when('/visualize/step/2', {
template: require('plugins/kibana/visualize/wizard/step_2.html'),
template: visualizeWizardStep2Template,
controller: 'VisualizeWizardStep2',
resolve: {
indexPatternIds: function (courier) {
Expand Down

0 comments on commit b129af5

Please sign in to comment.