Fix tagcloud sync issues, fix #14565 (#14566) (#14595)

* Fix tagcloud sync issues, fix #14565

* Remove console.log statement
This commit is contained in:
Tim Roes 2017-10-26 16:32:35 +02:00 committed by GitHub
parent 0cd7cf98fd
commit 54db6e3699

View file

@ -24,9 +24,21 @@ uiModules.get('kibana/table_vis')
});
slider.noUiSlider.on('change', function () {
const fontSize = slider.noUiSlider.get();
$scope.vis.params.minFontSize = parseInt(fontSize[0], 10);
$scope.vis.params.maxFontSize = parseInt(fontSize[1], 10);
$scope.$apply(() => {
$scope.vis.params.minFontSize = parseInt(fontSize[0], 10);
$scope.vis.params.maxFontSize = parseInt(fontSize[1], 10);
});
});
/**
* Whenever the params change (e.g. by hitting reset in the editor)
* set the uislider value to the new value.
*/
$scope.$watch('vis.params.minFontSize', (val) => {
slider.noUiSlider.set([val, null]);
});
$scope.$watch('vis.params.maxFontSize', (val) => {
slider.noUiSlider.set([null, val]);
});
}
};