Pages/shows: add new show button
This commit is contained in:
parent
35ce571079
commit
93b82aedba
2 changed files with 8 additions and 1 deletions
|
|
@ -4,6 +4,8 @@ import {Show} from '../../interfaces/show';
|
|||
import {ShowsApiResponse} from '../../interfaces/shows-api-response';
|
||||
import {Toast} from '../../interfaces/toast';
|
||||
import {ToastService} from '../../services/toast/toast.service';
|
||||
import {NgbModal} from '@ng-bootstrap/ng-bootstrap';
|
||||
import {CreateModalComponent} from '../../components/create-modal/create-modal/create-modal.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-shows',
|
||||
|
|
@ -14,6 +16,7 @@ import {ToastService} from '../../services/toast/toast.service';
|
|||
export class ShowsComponent {
|
||||
private api: ShowsApiService = inject(ShowsApiService);
|
||||
private toastService: ToastService = inject(ToastService);
|
||||
private modalService: NgbModal = inject(NgbModal);
|
||||
|
||||
shows: Show[] = [];
|
||||
|
||||
|
|
@ -34,4 +37,8 @@ export class ShowsComponent {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
createNewShow() {
|
||||
this.modalService.open(CreateModalComponent)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue