RED-3800 - Refactoring / Code Cleanup

This commit is contained in:
Valentin Mihai 2024-08-07 20:34:32 +03:00
parent e78dcff3a7
commit 90ba67a79c
4 changed files with 3 additions and 16 deletions

View File

@ -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',

View File

@ -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',

View File

@ -1,13 +0,0 @@
import { Injectable, signal } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class ActiveListingEntityService {
readonly #activeEntity = signal<string>('');
readonly activeEntity = this.#activeEntity.asReadonly();
updateEntity(entity: string = '') {
this.#activeEntity.set(entity);
}
}

@ -1 +1 @@
Subproject commit 66277814c5e2d224f78dad5e28c94ac4d084409b
Subproject commit 7f8336a64f3e3bed6e4751be3c0624a98b4aa727