File tree Expand file tree Collapse file tree
src/legacy/core_plugins/kibana/public/discover/doc_viewer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,15 +22,26 @@ import { uiModules } from 'ui/modules';
2222import { DocViewer } from './doc_viewer' ;
2323
2424uiModules . get ( 'apps/discover' ) . directive ( 'docViewer' , ( reactDirective : any ) => {
25- return reactDirective ( DocViewer , undefined , {
26- restrict : 'E' ,
27- scope : {
28- hit : '=' ,
29- indexPattern : '=' ,
30- filter : '=?' ,
31- columns : '=?' ,
32- onAddColumn : '=?' ,
33- onRemoveColumn : '=?' ,
34- } ,
35- } ) ;
25+ return reactDirective (
26+ DocViewer ,
27+ [
28+ 'hit' ,
29+ [ 'indexPattern' , { watchDepth : 'reference' } ] ,
30+ [ 'filter' , { watchDepth : 'reference' } ] ,
31+ [ 'columns' , { watchDepth : 'collection' } ] ,
32+ [ 'onAddColumn' , { watchDepth : 'reference' } ] ,
33+ [ 'onRemoveColumn' , { watchDepth : 'reference' } ] ,
34+ ] ,
35+ {
36+ restrict : 'E' ,
37+ scope : {
38+ hit : '=' ,
39+ indexPattern : '=' ,
40+ filter : '=?' ,
41+ columns : '=?' ,
42+ onAddColumn : '=?' ,
43+ onRemoveColumn : '=?' ,
44+ } ,
45+ }
46+ ) ;
3647} ) ;
You can’t perform that action at this time.
0 commit comments