Skip to content

Commit ff287cf

Browse files
chore(AnalyticalTable): remove busyIndicatorEnabled prop (#617)
BREAKING CHANGE: remove prop `busyIndicatorEnabled` as it is somehow duplicate to `loading`. The visibility of the busy indicator is now solely controlled by the prop `loading`.
1 parent 17ed544 commit ff287cf

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

packages/main/src/components/AnalyticalTable/AnalyticalTable.stories.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ import { FlexBoxJustifyContent } from '@ui5/webcomponents-react/lib/FlexBoxJusti
8585
}
8686
],
8787
title: 'Table Title',
88-
busyIndicatorEnabled: true,
8988
sortable: true,
9089
filterable: true,
9190
visibleRows: 15,
@@ -135,7 +134,6 @@ import { FlexBoxJustifyContent } from '@ui5/webcomponents-react/lib/FlexBoxJusti
135134
data={args.data}
136135
columns={args.columns}
137136
loading={args.loading}
138-
busyIndicatorEnabled={args.busyIndicatorEnabled}
139137
alternateRowColor={args.alternateRowColor}
140138
sortable={args.sortable}
141139
filterable={args.filterable}
@@ -283,7 +281,6 @@ This even works if you resize the browser window!
283281
data={args.dataTree}
284282
columns={args.columns}
285283
loading={args.loading}
286-
busyIndicatorEnabled={args.busyIndicatorEnabled}
287284
sortable={args.sortable}
288285
filterable={args.filterable}
289286
visibleRows={args.visibleRows}

packages/main/src/components/AnalyticalTable/AnalyticalTable.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ describe('AnalyticalTable', () => {
169169
data={dataTree}
170170
columns={columns}
171171
loading={false}
172-
busyIndicatorEnabled={true}
173172
sortable={true}
174173
filterable={true}
175174
visibleRows={15}

packages/main/src/components/AnalyticalTable/index.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ export interface TableProps extends CommonProps {
7272
minRows?: number;
7373
visibleRows?: number;
7474
loading?: boolean;
75-
busyIndicatorEnabled?: boolean;
7675
noDataText?: string;
7776
rowHeight?: number;
7877
alternateRowColor?: boolean;
@@ -143,7 +142,6 @@ const AnalyticalTable: FC<TableProps> = forwardRef((props: TableProps, ref: Ref<
143142
onSort,
144143
reactTableOptions,
145144
tableHooks,
146-
busyIndicatorEnabled,
147145
subRowsKey,
148146
onGroup,
149147
rowHeight,
@@ -403,9 +401,7 @@ const AnalyticalTable: FC<TableProps> = forwardRef((props: TableProps, ref: Ref<
403401
</header>
404402
);
405403
})}
406-
{loading && busyIndicatorEnabled && props.data?.length > 0 && (
407-
<LoadingComponent style={{ width: `${totalColumnsWidth}px` }} />
408-
)}
404+
{loading && props.data?.length > 0 && <LoadingComponent style={{ width: `${totalColumnsWidth}px` }} />}
409405
{loading && props.data?.length === 0 && (
410406
<TablePlaceholder
411407
columns={tableInternalColumns.filter(
@@ -448,7 +444,6 @@ const AnalyticalTable: FC<TableProps> = forwardRef((props: TableProps, ref: Ref<
448444
AnalyticalTable.displayName = 'AnalyticalTable';
449445
AnalyticalTable.defaultProps = {
450446
loading: false,
451-
busyIndicatorEnabled: true,
452447
sortable: true,
453448
filterable: false,
454449
groupable: false,

0 commit comments

Comments
 (0)