forked from doubtfire-lms/doubtfire-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pass selected task to footer's user icon
- Loading branch information
1 parent
5ef2f2c
commit 28782b1
Showing
3 changed files
with
11 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
<div fxLayout="row" fxLayoutAlign="start start" *ngIf="project?.student !== null"> | ||
<div fxLayout="row" fxLayoutAlign="start start" *ngIf="selectedTask?.project?.student !== null"> | ||
<a (click)="goToStudent()" style="display: flex"> | ||
<user-icon size="40" [user]="project.student" style="margin-right: 8px"></user-icon> | ||
<user-icon size="40" [user]="selectedTask.project.student" style="margin-right: 8px"></user-icon> | ||
<div fxLayout="column" fxLayoutAlign="center start" style="line-height: 0.5em; font-family: 'Grotesk'"> | ||
<h4 style="margin-bottom: 1px" class="mat-h4">{{ project.student.firstName }} {{ project.student.lastName }}</h4> | ||
<p class="mat-caption">{{ project.activeTasks()[0].definition.name }}</p> | ||
<h4 style="margin-bottom: 1px" class="mat-h4"> | ||
{{ selectedTask.project.student.firstName }} {{ selectedTask.project.student.lastName }} | ||
</h4> | ||
<p class="mat-caption">{{ selectedTask.definition.name }}</p> | ||
</div> | ||
</a> | ||
</div> | ||
<!-- | ||
<mat-chip-list *ngIf="project" #chipList aria-label="user badge" (click)="goToStudent()"> | ||
<mat-chip fxLayout="row" style="padding-left: -0px"> | ||
<span>{{ project.student.name }}</span> | ||
</mat-chip> | ||
<mat-chip> | ||
<span>{{ project.targetGradeAcronym }}</span> | ||
</mat-chip> | ||
</mat-chip-list> --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters