RED-4638: rename document status to document state
This commit is contained in:
parent
ca37e50d4e
commit
2313d98cb6
@ -1,6 +1,6 @@
|
||||
import { Injectable, Injector } from '@angular/core';
|
||||
import { combineLatest, firstValueFrom, from, merge, Observable, of, pairwise, Subject, switchMap } from 'rxjs';
|
||||
import { Dictionary, Dossier, DOSSIER_ID, File, FILE_ID } from '@red/domain';
|
||||
import { Dictionary, Dossier, DOSSIER_ID, DOSSIER_TEMPLATE_ID, File, FILE_ID } from '@red/domain';
|
||||
import { Router } from '@angular/router';
|
||||
import { FilesMapService } from '@services/files/files-map.service';
|
||||
import { PermissionsService } from '@services/permissions.service';
|
||||
@ -40,7 +40,7 @@ export class FilePreviewStateService {
|
||||
readonly isWritable$: Observable<boolean>;
|
||||
|
||||
readonly dossierId: string = getParam(DOSSIER_ID);
|
||||
readonly dossierTemplateId: string;
|
||||
readonly dossierTemplateId: string = getParam(DOSSIER_TEMPLATE_ID);
|
||||
readonly fileId: string = getParam(FILE_ID);
|
||||
dossier: Dossier;
|
||||
dialogRef: MatDialogRef<unknown>;
|
||||
@ -62,9 +62,6 @@ export class FilePreviewStateService {
|
||||
private readonly _loadingService: LoadingService,
|
||||
) {
|
||||
const dossiersService = dossiersServiceResolver(_injector, router);
|
||||
|
||||
this.dossierTemplateId = dossiersService.find(this.dossierId).dossierTemplateId;
|
||||
|
||||
this.dossier$ = dossiersService.getEntityChanged$(this.dossierId).pipe(tap(dossier => (this.dossier = dossier)));
|
||||
this.file$ = filesMapService.watch$(this.dossierId, this.fileId).pipe(tap(file => (this.file = file)));
|
||||
[this.isReadonly$, this.isWritable$] = boolFactory(
|
||||
|
||||
@ -799,7 +799,7 @@
|
||||
"total-people": "Total users"
|
||||
},
|
||||
"table-col-names": {
|
||||
"documents-status": "Documents Status",
|
||||
"documents-status": "Documents State",
|
||||
"dossier-state": "Dossier State",
|
||||
"last-modified": "Last modified",
|
||||
"name": "Name",
|
||||
@ -1413,7 +1413,7 @@
|
||||
},
|
||||
"filters": {
|
||||
"assigned-people": "Assignee(s)",
|
||||
"documents-status": "Documents Status",
|
||||
"documents-status": "Documents State",
|
||||
"dossier-state": "Dossier State",
|
||||
"dossier-templates": "Dossier Templates",
|
||||
"empty": "Empty",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user