From 7822e1fb993ad9048fa1c03d5890f0e17ecd01ae Mon Sep 17 00:00:00 2001 From: sumeyyeKurtulus Date: Mon, 16 Sep 2024 14:55:32 +0300 Subject: [PATCH] update: remove loading indicator config from extensible table --- .../extensible-table.component.html | 1 - .../extensible-table.component.ts | 34 +------------------ 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-table/extensible-table.component.html b/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-table/extensible-table.component.html index 576913b713..471aad0f15 100644 --- a/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-table/extensible-table.component.html +++ b/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-table/extensible-table.component.html @@ -1,6 +1,5 @@ implements OnChanges { this.actionList.toArray().map(action => ({ requiredPolicy: action.permission })), ).length > 0; this.setColumnWidths(DEFAULT_ACTIONS_COLUMN_WIDTH); - - this.subscribeLoading(); } private setColumnWidths(actionsColumn: number | undefined) { @@ -237,33 +234,4 @@ export class ExtensibleTableComponent implements OnChanges { return visibleActions.length > 0; } - - subscribeLoading() { - this.subscriptionService.addOne( - combineLatest([this.listService.isLoading$, this.routerWaitService.getLoading$()]), - ([listLoading, routerLoading]) => { - if (listLoading || routerLoading) { - this.startLoading(); - } else { - this.stopLoading(); - } - }, - ); - } - - startLoading() { - if (this.isLoading) { - return; - } - this.isLoading = true; - this.cdRef.detectChanges(); - } - - stopLoading() { - this.isLoading = false; - } - - ngOnDestroy() { - this.subscriptionService.closeAll(); - } }