A few cleanup items:

* 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
This commit is contained in:
Matthew Bargar 2016-06-17 15:13:50 -04:00
parent 83595aecd5
commit ef3c49aae5
3 changed files with 9 additions and 7 deletions

View file

@ -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';
@ -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();

View file

@ -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/'
});

View file

@ -234,10 +234,6 @@ kbn-management-indices {
}
}
.nav-buttons {
float:right;
}
.kbn-settings-indices-create {
.time-and-pattern > div {}
}