Skip to content
Snippets Groups Projects
Commit 1bc3dfd1 authored by HUSS THEOPHILE's avatar HUSS THEOPHILE
Browse files

fix: No display for component form-create-quiz

parent e21f3919
1 merge request!40fix: No display for component form-create-quiz
Pipeline #302316 passed with stages
in 48 seconds
......@@ -3,7 +3,7 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-form-play-quiz',
templateUrl: './form-play-quiz.component.html',
styleUrl: './form-play-quiz.component.css',
styleUrl: './form-play-quiz.component.css',
})
export class FormPlayQuizComponent {
showCreateQuiz: boolean = true;
......
......@@ -26,7 +26,6 @@
<br />
<div class="button-group">
<button class="btn btn-primary" type="submit">Create</button>
<button class="btn btn-secondary" (click)="handleClose()">Cancel</button>
</div>
</form>
</div>
......@@ -17,12 +17,7 @@ export class FormCreateQuizComponent implements OnInit {
difficultyCtrl: any;
form: any;
constructor(
private formQuizService: FormQuizService,
private fb: FormBuilder,
private dialogRef: MatDialogRef<FormCreateQuizComponent>,
private router: Router
) {}
constructor(private formQuizService: FormQuizService, private fb: FormBuilder, private router: Router) {}
categories: { id: number; name: string }[] = [];
ngOnInit(): void {
this.categoryCtrl = this.fb.control(null, []);
......@@ -51,11 +46,6 @@ export class FormCreateQuizComponent implements OnInit {
difficulty: this.form.value.difficulty,
},
});
this.dialogRef.close();
}
}
handleClose() {
this.dialogRef.close();
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment