Skip to content

Commit

Permalink
Merge pull request #439 from sinfo/my-card-fix
Browse files Browse the repository at this point in the history
Fix my card error and rename 'My card' to 'My Activity'
  • Loading branch information
andreromao authored Apr 14, 2024
2 parents 24e90c3 + 22d0879 commit 5cd78f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/app/user/my-card/my-card.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="wrapper pad" *ngIf="signatures && signatures.companies">
<div class="row">
<h3 class="title">
{{signatures.day | date:'EEEE':'+0100'}}'s card
{{signatures.day | date:'EEEE':'+0100'}}'s Activity
</h3>
<h6 *ngIf="userSignatures && userSignatures.redeemed" class="title">
Already redeemed your prize.
Expand All @@ -16,10 +16,10 @@ <h5 [ngClass]="{allSignatures: numSignatures === signatures.capacity}">
<i *ngIf="numSignatures === signatures.capacity" class="fa fa-check"></i>
</h5>
</div>
<div class="alert alert-info promocode-info" *ngIf="!userSignatures.redeemed">
<div class="alert alert-info promocode-info" *ngIf="!userSignatures || !userSignatures.redeemed">
<b>Earn prizes</b>
<span *ngIf="!numSignatures || numSignatures < signatures.capacity">: Visit 10 companies and get the chance to spin the wheel of fortune at SINFO stand.</span>
<span *ngIf="numSignatures === signatures.capacity"><b> now:</b> You can now spin the wheel of fortune at SINFO stand.</span>
<span *ngIf="!numSignatures || numSignatures < signatures.capacity">: Visit 10 companies and get the chance to spin the wheel of fortune at the frontdesk.</span>
<span *ngIf="numSignatures === signatures.capacity"><b> now:</b> You can now spin the wheel of fortune at the frontdesk.</span>
</div>
</div>
<div class="row">
Expand Down
4 changes: 2 additions & 2 deletions src/app/user/user.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ <h2 *ngIf="user && user.role === 'team'" matSubheader style="color: grey;">Atend
<a *ngIf="user && user.role !== 'company'" mat-list-item routerLink="/user/my-card"
routerLinkActive="navigation-link active" (click)="sidenav.toggle()">
<div class="navigation-link">
<mat-icon>school</mat-icon>
<span class="list-item">My card</span>
<mat-icon>timelapse</mat-icon>
<span class="list-item">My Activity</span>
</div>
</a>
<!-- <a *ngIf="user && user.role === 'team'" mat-list-item routerLink="/user/secret-codes" routerLinkActive="navigation-link active"
Expand Down

0 comments on commit 5cd78f7

Please sign in to comment.