Reformat code
This commit is contained in:
parent
312fedec7b
commit
8f416cc8b4
4 changed files with 12 additions and 15 deletions
|
|
@ -1,12 +1,6 @@
|
|||
import {Component, inject} from '@angular/core';
|
||||
import {NgbActiveModal, NgbCollapse} from '@ng-bootstrap/ng-bootstrap';
|
||||
import {
|
||||
FormControl,
|
||||
FormGroup,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
Validators
|
||||
} from '@angular/forms';
|
||||
import {FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators} from '@angular/forms';
|
||||
|
||||
@Component({
|
||||
selector: 'app-delete-modal',
|
||||
|
|
|
|||
|
|
@ -89,8 +89,11 @@ export class ShowsComponent {
|
|||
modal.componentInstance.show = show
|
||||
modal.componentInstance.initForm()
|
||||
modal.result.then(
|
||||
(closeResult: Show) => {this.shows[index] = closeResult},
|
||||
(dissmissResult) => {}
|
||||
(closeResult: Show) => {
|
||||
this.shows[index] = closeResult
|
||||
},
|
||||
(dissmissResult) => {
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue