Pull request #146: show derived project information
Merge in RED/ui from RED-1249 to master * commit '840d9bd83f01ff94f19e352ffe34746198df2335': show derived project information
This commit is contained in:
commit
a7304b4334
@ -40,5 +40,9 @@
|
|||||||
<mat-icon svgIcon="red:lightning"></mat-icon>
|
<mat-icon svgIcon="red:lightning"></mat-icon>
|
||||||
<span>{{ 'file-preview.tabs.document-info.details.due' | translate: { date: project.project.dueDate | date: 'mediumDate' } }}</span>
|
<span>{{ 'file-preview.tabs.document-info.details.due' | translate: { date: project.project.dueDate | date: 'mediumDate' } }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<mat-icon svgIcon="red:template"></mat-icon>
|
||||||
|
{{ ruleSetName }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
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 { AppStateService } from '../../../../state/app-state.service';
|
||||||
import { ProjectsDialogService } from '../../services/projects-dialog.service';
|
import { ProjectsDialogService } from '../../services/projects-dialog.service';
|
||||||
|
|
||||||
@ -14,11 +14,7 @@ export class DocumentInfoComponent implements OnInit {
|
|||||||
|
|
||||||
public fileAttributesConfig: FileAttributeConfig[];
|
public fileAttributesConfig: FileAttributeConfig[];
|
||||||
|
|
||||||
constructor(
|
constructor(private readonly _appStateService: AppStateService, private readonly _dialogService: ProjectsDialogService) {
|
||||||
private readonly _appStateService: AppStateService,
|
|
||||||
private readonly _fileAttributesService: FileAttributesControllerService,
|
|
||||||
private readonly _dialogService: ProjectsDialogService
|
|
||||||
) {
|
|
||||||
this.fileAttributesConfig = this._appStateService.fileAttributesConfig.filter((attr) => attr.visible);
|
this.fileAttributesConfig = this._appStateService.fileAttributesConfig.filter((attr) => attr.visible);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,4 +27,8 @@ export class DocumentInfoComponent implements OnInit {
|
|||||||
public edit() {
|
public edit() {
|
||||||
this._dialogService.openDocumentInfoDialog(this.file);
|
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