Skip to content

Commit

Permalink
adding option to specify custome deprecate message
Browse files Browse the repository at this point in the history
  • Loading branch information
stormpython committed Mar 29, 2016
1 parent 550c233 commit b9e685f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/plugins/kbn_vislib_vis_types/public/tile_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export default function TileMapVisType(Private, getAppState, courier, config) {
name: 'split',
title: 'Split Chart',
deprecate: true,
deprecateMessage: 'The Split Chart feature for Tile Maps has been deprecated.',
min: 0,
max: 1
}
Expand Down
5 changes: 4 additions & 1 deletion src/plugins/kibana/public/visualize/editor/agg_params.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
</div>

<div ng-if="agg.schema.deprecate" class="form-group">
<p class="vis-editor-agg-error">
<p ng-show="agg.schema.deprecateMessage" class="vis-editor-agg-error">
{{ agg.schema.deprecateMessage }}
</p>
<p ng-show="!agg.schema.deprecateMessage" class="vis-editor-agg-error">
"{{ agg.schema.title }}" has been deprecated.
</p>
</div>
Expand Down

0 comments on commit b9e685f

Please sign in to comment.