Skip to content

Commit

Permalink
A few cleanup items:
Browse files Browse the repository at this point in the history
* Switched data/upload url to data/csv for better future proofing
* Removed old unnecessary css rule
* Fixed issue with management tab link removing the wizard's app state
  • Loading branch information
Bargs committed Jun 17, 2016
1 parent 83595ae commit ef3c49a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import _ from 'lodash';
import modules from 'ui/modules';
import template from 'plugins/kibana/management/sections/indices/upload/directives/upload_wizard.html';
import IngestProvider from 'ui/ingest';
Expand Down Expand Up @@ -62,6 +63,11 @@ modules.get('apps/management')
};

$scope.$watch('wizard.state.currentStep', (newValue, oldValue) => {
if (_.isUndefined(newValue)) {
$state.currentStep = oldValue;
$state.save();
return;
}
if (this.complete) {
$state.currentStep = totalSteps - 1;
$state.save();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import routes from 'ui/routes';
import template from 'plugins/kibana/management/sections/indices/upload/index.html';
import './directives/upload_wizard';

routes.when('/management/data/upload/', {
routes.when('/management/data/csv/', {
template: template
});

management.getSection('data').register('upload', {
management.getSection('data').register('csv', {
display: 'Upload CSV',
order: 10,
path: 'data/upload/'
path: 'data/csv/'
});

4 changes: 0 additions & 4 deletions src/plugins/kibana/public/management/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,6 @@ kbn-management-indices {
}
}

.nav-buttons {
float:right;
}

.kbn-settings-indices-create {
.time-and-pattern > div {}
}
Expand Down

0 comments on commit ef3c49a

Please sign in to comment.