Skip to content

Commit

Permalink
feat: 🎸 reshuffle vis_types in supportedTriggers() method
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 16, 2020
1 parent f039280 commit a7d074f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,24 +396,24 @@ export class VisualizeEmbeddable extends Embeddable<VisualizeInput, VisualizeOut
public supportedTriggers() {
// TODO: Report a correct list of triggers for each vis_type.
switch (this.vis.type.name) {
case 'histogram':
case 'line':
case 'pie':
case 'area':
case 'heatmap':
case 'histogram':
case 'horizontal_bar':
case 'line':
case 'pie':
case 'table':
case 'tagcloud':
return [VIS_EVENT_TO_TRIGGER.filter];
case 'gauge':
case 'goal':
return [VIS_EVENT_TO_TRIGGER.filter];
case 'input_control_vis':
case 'markdown':
case 'metric':
case 'metrics':
case 'table':
case 'tagcloud':
case 'timelion':
case 'region_map':
case 'tile_map':
case 'timelion':
case 'vega':
default:
return [];
Expand Down

0 comments on commit a7d074f

Please sign in to comment.