Commit aab73747 authored by Almouhannad's avatar Almouhannad

(F) Change modal behavior

parent 72d0dbfb
import { Component } from '@angular/core';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { ToastrService } from 'ngx-toastr';
@Component({
selector: 'app-root',
......@@ -9,18 +7,8 @@ import { ToastrService } from 'ngx-toastr';
})
export class AppComponent {
constructor(private modalService: NgbModal, private toastrService: ToastrService) {
constructor() {
}
public open(modal: any): void {
this.modalService.open(modal);
}
public showToast(): void {
this.toastrService.success("world!", "Hello");
this.toastrService.info("world!", "Hello");
this.toastrService.warning("world!", "Hello");
this.toastrService.error("world!", "Hello");
}
}
\ No newline at end of file
......@@ -45,7 +45,10 @@ export class HeaderComponent {
//#region Open pop-up
openPopUp(content: any): void {
this.modalService.open(content);
this.modalService.open(content, {
centered: true,
size: 'md'
});
}
//#endregion
......
Markdown is supported
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