aio-table 5.0.2 → 5.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -868,7 +868,9 @@ var AIOTable = /*#__PURE__*/function (_Component) {
|
|
|
868
868
|
onChangeSort = _this$props5.onChangeSort,
|
|
869
869
|
_this$props5$toggleAl = _this$props5.toggleAll,
|
|
870
870
|
toggleAll = _this$props5$toggleAl === void 0 ? false : _this$props5$toggleAl,
|
|
871
|
-
id = _this$props5.id
|
|
871
|
+
id = _this$props5.id,
|
|
872
|
+
_this$props5$toolbarI = _this$props5.toolbarItems,
|
|
873
|
+
toolbarItems = _this$props5$toolbarI === void 0 ? [] : _this$props5$toolbarI;
|
|
872
874
|
var _this$state2 = this.state,
|
|
873
875
|
groupDictionary = _this$state2.groupDictionary,
|
|
874
876
|
sorts = _this$state2.sorts,
|
|
@@ -880,7 +882,7 @@ var AIOTable = /*#__PURE__*/function (_Component) {
|
|
|
880
882
|
this.freezeColumns = [];
|
|
881
883
|
this.unFreezeColumns = [];
|
|
882
884
|
this.toolbar = {
|
|
883
|
-
show: toggleAll,
|
|
885
|
+
show: toggleAll === true || toolbarItems.length > 0,
|
|
884
886
|
toggle: [{
|
|
885
887
|
text: translate('Show Columns')
|
|
886
888
|
}],
|