From 792aa3de729fea920afcd3eb275969e421c527d3 Mon Sep 17 00:00:00 2001 From: ievavold <ievavold@wisc.edu> Date: Thu, 28 Feb 2019 11:59:09 -0600 Subject: [PATCH] re-add term notes ui --- .../term-container.component.html | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/app/degree-planner/term-container/term-container.component.html b/src/app/degree-planner/term-container/term-container.component.html index 1640deb..ccb0042 100644 --- a/src/app/degree-planner/term-container/term-container.component.html +++ b/src/app/degree-planner/term-container/term-container.component.html @@ -96,6 +96,26 @@ </ng-template> </div> </div> + + <!-- Render term note (if it exists) --> + <ng-container *ngIf="(note$ | async) as note"> + <ng-container *ngIf="note.isLoaded; else noteIsLoading"> + <div class="note-item" (click)="openNotesDialog(note)"> + <p class="semi-bold">Note</p> + <p class="note-excerpt">{{ note.text }}</p> + </div> + </ng-container> + <ng-template #noteIsLoading> + <div class="note-item note-item-loading"> + <p class="semi-bold">Note</p> + <p class="note-excerpt">{{ note.text }}</p> + <mat-progress-spinner + mode="indeterminate" + diameter="24" + ></mat-progress-spinner> + </div> + </ng-template> + </ng-container> </div> <!-- If this term is an active term --> -- GitLab