Skip to content

Commit

Permalink
- update to v 6.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mik committed Feb 15, 2018
1 parent 71b4cc3 commit da651b8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ bin/kibana-plugin install <PATH_OR_URL_TO_YOUR_ZIP_FILE>
Plugins are officialy not supported, because of fast code changes even in minor Versions.

The plugin is compatible with following Versions:
* kibana (=6.1.3)
* kibana (=6.2.0)

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "kibana-html-plugin",
"description": "This is a Kibana plugin which renders HTML in visualizations",
"version": "6.1.3"
"version": "6.2.0"
}
4 changes: 3 additions & 1 deletion public/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {CATEGORY} from 'ui/vis/vis_category';
import {VisFactoryProvider} from 'ui/vis/vis_factory';
import {VisTypesRegistryProvider} from 'ui/registry/vis_types';
import {VisSchemasProvider} from 'ui/vis/editors/default/schemas';
import { DefaultEditorSize } from 'ui/vis/editor_size';

VisTypesRegistryProvider.register(HtmlVisProvider);

Expand All @@ -30,7 +31,8 @@ function HtmlVisProvider(Private) {
},
editorConfig: {
optionsTemplate: optionsTemplate,
enableAutoApply: true
enableAutoApply: true,
defaultSize: DefaultEditorSize.LARGE
},
options: {
showTimePicker: false,
Expand Down
2 changes: 1 addition & 1 deletion public/htmlController.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.controller('KbnHtmlEditController', ['$scope', function($scope) {
module.controller('KbnHtmlVisController', function ($scope, $sce) {
$scope.$watch('renderComplete', function () {
var html = $scope.vis.params.html;
if (html) {
if ($scope.updateStatus.params && html) {
$scope.html = $sce.trustAsHtml(html);
}
$scope.renderComplete();
Expand Down

0 comments on commit da651b8

Please sign in to comment.