Skip to content

Commit 87cff6c

Browse files
author
Andrea Barbasso
committed
[DURACOM-248] set function call result in a class attribute
1 parent c485f10 commit 87cff6c

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/app/item-page/versions/item-versions.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h2 *ngIf="displayTitle" class="h4">{{"item.version.history.head" | translate}}<
1717
<thead>
1818
<tr>
1919
<th scope="col">{{"item.version.history.table.version" | translate}}</th>
20-
<th scope="col" *ngIf="(showSubmitter() | async)">{{"item.version.history.table.editor" | translate}}</th>
20+
<th scope="col" *ngIf="(showSubmitter$ | async)">{{"item.version.history.table.editor" | translate}}</th>
2121
<th scope="col">{{"item.version.history.table.date" | translate}}</th>
2222
<th scope="col">{{"item.version.history.table.summary" | translate}}</th>
2323
</tr>
@@ -33,7 +33,7 @@ <h2 *ngIf="displayTitle" class="h4">{{"item.version.history.head" | translate}}<
3333
(versionsHistoryChange)="getAllVersions($event)"
3434
></ds-item-versions-row-element-version>
3535
</td>
36-
<td class="version-row-element-editor" *ngIf="(showSubmitter() | async)">
36+
<td class="version-row-element-editor" *ngIf="(showSubmitter$ | async)">
3737
{{version?.submitterName}}
3838
</td>
3939
<td class="version-row-element-date">

src/app/item-page/versions/item-versions.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ export class ItemVersionsComponent implements OnDestroy, OnInit {
142142
*/
143143
hasDraftVersion$: Observable<boolean>;
144144

145+
/**
146+
* Show submitter in version history table
147+
*/
148+
showSubmitter$: Observable<boolean> = this.showSubmitter();
149+
145150
/**
146151
* The amount of versions to display per page
147152
*/

0 commit comments

Comments
 (0)