From 90ba67a79cb000b1371ae1a8461c4c6beb945648 Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Wed, 7 Aug 2024 20:34:32 +0300 Subject: [PATCH] RED-3800 - Refactoring / Code Cleanup --- .../workflow-item/workflow-item.component.ts | 2 +- .../file-download-btn.component.ts | 2 +- .../app/services/active-listing-entity.service.ts | 13 ------------- libs/common-ui | 2 +- 4 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 apps/red-ui/src/app/services/active-listing-entity.service.ts diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.ts b/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.ts index 9ea7f5466..c8a1670ce 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.ts @@ -12,7 +12,7 @@ import { FileWorkloadComponent } from '../table-item/file-workload/file-workload import { ProcessingIndicatorComponent } from '@shared/components/processing-indicator/processing-indicator.component'; import { FileActionsComponent } from '../../../shared-dossiers/components/file-actions/file-actions.component'; import { AsyncPipe, NgForOf, NgIf } from '@angular/common'; -import { ActiveListingEntityService } from '@services/active-listing-entity.service'; +import { ActiveListingEntityService } from '@common-ui/listing/services/active-listing-entity.service'; @Component({ selector: 'redaction-workflow-item', diff --git a/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.ts b/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.ts index c261de913..74749f353 100644 --- a/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.ts @@ -10,7 +10,7 @@ import { TranslateModule } from '@ngx-translate/core'; import { MatMenu, MatMenuItem, MatMenuTrigger } from '@angular/material/menu'; import { firstValueFrom } from 'rxjs'; import { ComponentLogService } from '@services/files/component-log.service'; -import { ActiveListingEntityService } from '@services/active-listing-entity.service'; +import { ActiveListingEntityService } from '@common-ui/listing/services/active-listing-entity.service'; @Component({ selector: 'redaction-file-download-btn', diff --git a/apps/red-ui/src/app/services/active-listing-entity.service.ts b/apps/red-ui/src/app/services/active-listing-entity.service.ts deleted file mode 100644 index f4c27868e..000000000 --- a/apps/red-ui/src/app/services/active-listing-entity.service.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Injectable, signal } from '@angular/core'; - -@Injectable({ - providedIn: 'root', -}) -export class ActiveListingEntityService { - readonly #activeEntity = signal(''); - readonly activeEntity = this.#activeEntity.asReadonly(); - - updateEntity(entity: string = '') { - this.#activeEntity.set(entity); - } -} diff --git a/libs/common-ui b/libs/common-ui index 66277814c..7f8336a64 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit 66277814c5e2d224f78dad5e28c94ac4d084409b +Subproject commit 7f8336a64f3e3bed6e4751be3c0624a98b4aa727