Skip to content

Commit

Permalink
feat: added badge to vintage notes
Browse files Browse the repository at this point in the history
  • Loading branch information
JanssenBrm committed Oct 29, 2023
1 parent 7101036 commit bf74739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/vineyeard-view/notes/notes.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="list">
<ion-card *ngFor="let note of (notes$ | async) | filterNotesByTypes: activeTypes | orderBy:{key: 'date', type: 'dateString', desc: true} ">
<ion-card-header >
<ion-card-subtitle>{{STAGE[note.stage].replace('_', ' ') | titlecase}}</ion-card-subtitle>
<ion-card-subtitle><ion-badge [style.background-color]="vintageService.getEventTypeColor(note.stage)">{{STAGE[note.stage].replace('_', ' ') | titlecase}}</ion-badge></ion-card-subtitle>
<ion-card-title>
<div class="subtitle">
<span>{{note.date | date:'dd MMMM yyyy'}}</span>
Expand Down

0 comments on commit bf74739

Please sign in to comment.