Skip to content

Commit

Permalink
Make the input required
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-glombik committed Sep 2, 2024
1 parent 904a0ec commit 2911290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, Input } from '@angular/core';
import { Component, Input, inject } from '@angular/core';
import type { ProgrammingDiffReportDetail } from 'app/detail-overview-list/detail.model';
import { FeatureToggle } from 'app/shared/feature-toggle/feature-toggle.service';
import { ButtonSize, ButtonType, TooltipPlacement } from 'app/shared/components/button.component';
Expand All @@ -24,9 +24,9 @@ export class ProgrammingDiffReportDetailComponent {

protected readonly faCodeCompare = faCodeCompare;

@Input() detail: ProgrammingDiffReportDetail;
private readonly modalService = inject(NgbModal);

constructor(private modalService: NgbModal) {}
@Input({ required: true }) detail: ProgrammingDiffReportDetail;

showGitDiff(gitDiff?: ProgrammingExerciseGitDiffReport) {
if (!gitDiff) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ import { TranslateDirective } from 'app/shared/language/translate.directive';
export class ProgrammingTestStatusDetailComponent {
protected readonly ProgrammingExerciseParticipationType = ProgrammingExerciseParticipationType;

@Input() detail: ProgrammingTestStatusDetail;
@Input({ required: true }) detail: ProgrammingTestStatusDetail;
}

0 comments on commit 2911290

Please sign in to comment.