Skip to content

Commit

Permalink
Pollux #5030 Allow hideExportActions in agg tables (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtnx authored Mar 25, 2020
1 parent cb754c1 commit c2dfb1f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/legacy/core_plugins/table_vis/public/table_vis.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ <h2 aria-hidden="true"><i aria-hidden="true" class="fa fa-meh-o"></i></h2>
<kbn-agg-table-group
group="tableGroups"
export-title="visState.title"
hide-export-actions="visState.params.hideExportActions"
per-page="visState.params.perPage"
sort="sort"
show-total="visState.params.showTotal"
Expand Down
1 change: 1 addition & 0 deletions src/legacy/core_plugins/table_vis/public/table_vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function TableVisTypeProvider(Private) {
columnIndex: null,
direction: null
},
hideExportActions: false,
showTotal: false,
totalFunc: 'sum'
},
Expand Down
10 changes: 10 additions & 0 deletions src/legacy/core_plugins/table_vis/public/table_vis_params.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@
</label>
</div>

<div class="checkbox">
<label>
<input type="checkbox" ng-model="editorState.params.hideExportActions">
<span
i18n-id="tableVis.params.hideExportActions"
i18n-default-message="Hide export actions"
></span>
</label>
</div>

<div class="checkbox">
<label>
<input type="checkbox" ng-model="editorState.params.showTotal">
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/agg_table/agg_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
show-total="showTotal"
totalFunc="totalFunc">

<div class="kbnAggTable__controls">
<div ng-if="!hideExportActions" class="kbnAggTable__controls">
<small
i18n-id="common.ui.aggTable.exportLabel"
i18n-default-message="Export:"
Expand Down
1 change: 1 addition & 0 deletions src/ui/public/agg_table/agg_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ uiModules
perPage: '=?',
sort: '=?',
exportTitle: '=?',
hideExportActions: '=?',
showTotal: '=',
totalFunc: '='
},
Expand Down
2 changes: 2 additions & 0 deletions src/ui/public/agg_table/agg_table_group.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
ng-if="table.rows"
table="table"
export-title="exportTitle"
hide-export-actions="hideExportActions"
per-page="perPage"
sort="sort"
show-total="showTotal"
Expand Down Expand Up @@ -52,6 +53,7 @@
ng-if="table.rows"
table="table"
export-title="exportTitle"
hide-export-actions="hideExportActions"
per-page="perPage"
sort="sort"
show-total="showTotal"
Expand Down
1 change: 1 addition & 0 deletions src/ui/public/agg_table/agg_table_group.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ uiModules
perPage: '=?',
sort: '=?',
exportTitle: '=?',
hideExportActions: '=?',
showTotal: '=',
totalFunc: '='
},
Expand Down
1 change: 1 addition & 0 deletions src/ui/public/paginated_table/paginated_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ uiModules
scope: {
rows: '=',
columns: '=',
hideExportActions: '=?',
linkToTop: '=',
perPage: '=?',
showBlankRows: '=?',
Expand Down

0 comments on commit c2dfb1f

Please sign in to comment.