Skip to content

Commit

Permalink
[ML] Remove deprecated angularjs directives. (elastic#28564)
Browse files Browse the repository at this point in the history
* [ML] Remove deprecated show-charts directive.
* [ML] Remove deprecated ml-controls-select directive.
* [ML] Remove deprecated SCSS import.
  • Loading branch information
walterra committed Jan 11, 2019
1 parent 714a4de commit 2b78a15
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 199 deletions.
3 changes: 1 addition & 2 deletions x-pack/plugins/ml/public/components/controls/_index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@import 'controls';
@import 'controls_select/index';
@import 'select_severity/index';
@import 'select_severity/index';
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,12 @@ import { stateFactoryProvider } from 'plugins/ml/factories/state_factory';
import { uiModules } from 'ui/modules';
const module = uiModules.get('apps/ml', ['react']);

import { CheckboxShowCharts, mlCheckboxShowChartsService } from './checkbox_showcharts';
import { mlCheckboxShowChartsService } from './checkbox_showcharts';

module.service('mlCheckboxShowChartsService', function (Private) {
const stateFactory = Private(stateFactoryProvider);
this.state = mlCheckboxShowChartsService.state = stateFactory('mlCheckboxShowCharts', {
showCharts: true
});
mlCheckboxShowChartsService.initialized = true;
})
.directive('mlCheckboxShowCharts', function ($injector) {
const reactDirective = $injector.get('reactDirective');

return reactDirective(
CheckboxShowCharts,
undefined,
{ restrict: 'E' },
);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
*/


import './checkbox_showcharts_directive';
import './checkbox_showcharts_service';

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion x-pack/plugins/ml/public/components/controls/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@


import './checkbox_showcharts';
import './controls_select';
import './select_interval';
import './select_severity';

0 comments on commit 2b78a15

Please sign in to comment.