mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[ADF-1695] Comment component - Fix the header key (#2462)
* Fix the comment header key * Fix unit test * Fix process comment
This commit is contained in:
parent
fcb292c849
commit
793432d89f
@ -114,7 +114,7 @@ describe('ActivitiProcessInstanceComments', () => {
|
||||
fixture.whenStable().then(() => {
|
||||
fixture.detectChanges();
|
||||
let element = fixture.nativeElement.querySelector('#comment-header');
|
||||
expect(element.innerText).toContain('(3)');
|
||||
expect(element.innerText).toBe('TASK_DETAILS.COMMENTS.HEADER');
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="adf-comments-container">
|
||||
<div id="comment-header" class="adf-comments-header">
|
||||
{{'TASK_DETAILS.COMMENTS.HEADER' | translate}}({{comments?.length}})
|
||||
{{'TASK_DETAILS.COMMENTS.HEADER' | translate: { count: comments?.length} }}
|
||||
</div>
|
||||
<div class="adf-comments-input-container" *ngIf="!isReadOnly()">
|
||||
<mat-form-field class="adf-full-width">
|
||||
|
@ -122,7 +122,7 @@ describe('CommentsComponent', () => {
|
||||
fixture.whenStable().then(() => {
|
||||
fixture.detectChanges();
|
||||
let element = fixture.nativeElement.querySelector('#comment-header');
|
||||
expect(element.innerText).toContain('(3)');
|
||||
expect(element.innerText).toBe('TASK_DETAILS.COMMENTS.HEADER');
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -49,7 +49,7 @@
|
||||
"COMMENTS": {
|
||||
"NONE": "No comments",
|
||||
"ADD": "Add a comment",
|
||||
"HEADER": "Comments",
|
||||
"HEADER": "Comments ({{ count }})",
|
||||
"CREATED_BY_HEADER": "Created by",
|
||||
"MESSAGE_HEADER": "Message",
|
||||
"DIALOG": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user