Skip to content

Commit

Permalink
fix(frontend): TypeError in edit-assignment.component.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Jan 12, 2024
1 parent 9f0f50b commit 7fecc1d
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<div class="container">
<h1>
{{$any(context.assignment)?._id ? 'Edit' : 'Create'}}
{{ context.assignment?.['_id'] ? 'Edit' : 'Create' }}
Assignment
</h1>
<div class="d-flex align-items-center mb-3">
<app-import-export class="me-auto" (import)="onImport($event)" (export)="onExport()"></app-import-export>
<a class="btn btn-secondary ms-2" routerLink="/assignments">
Cancel
</a>
@if (context.assignment['_id']) {
@if (context.assignment?.['_id']) {
<a class="btn btn-info ms-2" routerLink="diff">
View Diff
</a>
Expand All @@ -19,11 +19,9 @@ <h1>
</button>
}
<button class="btn btn-primary ms-2" (click)="submit()" [disabled]="submitting">
{{$any(context.assignment)?._id ? (submitting ? 'Saving...' : 'Save') : (submitting ? 'Submitting...' : 'Submit')}}
{{ submitting ? 'Saving...' : 'Save' }}
</button>
</div>
<ngbx-route-tabs [routes]="steps"></ngbx-route-tabs>
@if (context.assignment) {
<router-outlet></router-outlet>
}
<router-outlet></router-outlet>
</div>

0 comments on commit 7fecc1d

Please sign in to comment.