Skip to content

Commit

Permalink
Remove "Create new exercise" button
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-glombik committed Dec 14, 2024
1 parent 1f464d2 commit 6c024df
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ <h2 jhiTranslate="artemisApp.exerciseUnit.createExerciseUnit.headline"></h2>
<fa-icon [icon]="faTimes" />&nbsp;<span jhiTranslate="entity.action.cancel"></span>
</button>
}
@if (hasCreateExerciseButton()) {
<button
id="createExerciseButton"
type="button"
class="btn btn-primary"
(click)="createNewExercise()"
jhiTranslate="artemisApp.lecture.wizardMode.newExercise"
></button>
}
<button
id="createButton"
type="button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export class CreateExerciseUnitComponent implements OnInit {
@Input() lectureId: number | undefined;
@Input() courseId: number | undefined;
hasCancelButton = input<boolean>();
hasCreateExerciseButton = input<boolean>();
shouldNavigateOnSubmit = input<boolean>(true);

onCancel = output<void>();
Expand Down Expand Up @@ -122,11 +121,4 @@ export class CreateExerciseUnitComponent implements OnInit {
cancelForm() {
this.onCancel.emit();
}

createNewExercise() {
this.router.navigate(['/course-management', this.courseId, 'exercises'], {
queryParams: { lectureId: this.lectureId },
queryParamsHandling: '',
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ <h4><span jhiTranslate="artemisApp.lecture.wizardMode.editLectureUnit"></span></
[lectureId]="lecture.id"
[courseId]="lecture.course?.id"
[hasCancelButton]="true"
[hasCreateExerciseButton]="true"
(onCancel)="onCloseLectureUnitForms()"
/>
}
Expand Down

0 comments on commit 6c024df

Please sign in to comment.