Skip to content

Commit

Permalink
delete unnecessary information when owner or changeinfo does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Vakmeth committed Oct 16, 2023
1 parent d26a6fa commit 7057bd1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ <h1 class="mb-2 title">{{ keyResult.title }}</h1>
</div>
<div class="d-flex align-items-center">
<img alt="person icon" class="me-1" height="10" src="assets/icons/person-icon.svg" width="10" />
<p *ngIf="keyResult.owner as owner; else noOwner">{{ owner.firstname }} {{ owner.lastname }}</p>
<ng-template #noOwner>Kein Besitzer</ng-template>
<p *ngIf="keyResult.owner as owner">{{ owner.firstname }} {{ owner.lastname }}</p>
</div>
<div class="d-flex flex-row" *ngIf="keyResult?.objective?.quarter as quarter">
<p>{{ quarter.startDate | date: "dd.MM.yyy" }} -</p>
Expand Down Expand Up @@ -57,8 +56,7 @@ <h1 class="mb-2 title">{{ keyResult.title }}</h1>

<div *ngIf="keyResult.lastCheckIn as checkIn" class="mt-4">
<p class="sub-title-keyresult fw-bold mb-1">Letztes Check-in ({{ checkIn.createdOn | date: "dd.MM.yyy" }})</p>
<p *ngIf="checkIn.changeInfo; else noChangeInfo">{{ checkIn.changeInfo }}</p>
<ng-template #noChangeInfo> Keine Änderungsinformation</ng-template>
<p *ngIf="checkIn.changeInfo">{{ checkIn.changeInfo }}</p>
<span class="d-flex justify-content-start">
<button (click)="checkInHistory()" class="px-0" color="primary" disableRipple="true" mat-button>
Alle Check-ins anzeigen
Expand Down

0 comments on commit 7057bd1

Please sign in to comment.