show derived project information
This commit is contained in:
parent
c4a84a4a4d
commit
840d9bd83f
@ -40,5 +40,9 @@
|
||||
<mat-icon svgIcon="red:lightning"></mat-icon>
|
||||
<span>{{ 'file-preview.tabs.document-info.details.due' | translate: { date: project.project.dueDate | date: 'mediumDate' } }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<mat-icon svgIcon="red:template"></mat-icon>
|
||||
{{ ruleSetName }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||
import { FileAttributeConfig, FileAttributesControllerService, FileStatus } from '@redaction/red-ui-http';
|
||||
import { FileAttributeConfig, FileStatus } from '@redaction/red-ui-http';
|
||||
import { AppStateService } from '../../../../state/app-state.service';
|
||||
import { ProjectsDialogService } from '../../services/projects-dialog.service';
|
||||
|
||||
@ -14,11 +14,7 @@ export class DocumentInfoComponent implements OnInit {
|
||||
|
||||
public fileAttributesConfig: FileAttributeConfig[];
|
||||
|
||||
constructor(
|
||||
private readonly _appStateService: AppStateService,
|
||||
private readonly _fileAttributesService: FileAttributesControllerService,
|
||||
private readonly _dialogService: ProjectsDialogService
|
||||
) {
|
||||
constructor(private readonly _appStateService: AppStateService, private readonly _dialogService: ProjectsDialogService) {
|
||||
this.fileAttributesConfig = this._appStateService.fileAttributesConfig.filter((attr) => attr.visible);
|
||||
}
|
||||
|
||||
@ -31,4 +27,8 @@ export class DocumentInfoComponent implements OnInit {
|
||||
public edit() {
|
||||
this._dialogService.openDocumentInfoDialog(this.file);
|
||||
}
|
||||
|
||||
public get ruleSetName(): string {
|
||||
return this._appStateService.getRuleSetById(this.project.ruleSetId).name;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user