diff --git a/src/components/create-modal/create-edit-modal/create-edit-modal.component.ts b/src/components/create-modal/create-edit-modal/create-edit-modal.component.ts index 4428e32..caeac9d 100644 --- a/src/components/create-modal/create-edit-modal/create-edit-modal.component.ts +++ b/src/components/create-modal/create-edit-modal/create-edit-modal.component.ts @@ -97,7 +97,7 @@ export class CreateEditModalComponent { if (error) { htmlClass = htmlClass.replace("success", "danger") let temp: string - switch (action){ + switch (action) { case "created": temp = "created" break @@ -109,6 +109,6 @@ export class CreateEditModalComponent { } else { body = `Show ${action} successfully!` } - this.toastService.show({body,htmlClass}) + this.toastService.show({body, htmlClass}) } } diff --git a/src/components/delete-modal/delete-modal.component.spec.ts b/src/components/delete-modal/delete-modal.component.spec.ts index 7c29c0f..0bafd22 100644 --- a/src/components/delete-modal/delete-modal.component.spec.ts +++ b/src/components/delete-modal/delete-modal.component.spec.ts @@ -1,6 +1,6 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; +import {ComponentFixture, TestBed} from '@angular/core/testing'; -import { DeleteModalComponent } from './delete-modal.component'; +import {DeleteModalComponent} from './delete-modal.component'; describe('DeleteModalComponent', () => { let component: DeleteModalComponent; @@ -10,7 +10,7 @@ describe('DeleteModalComponent', () => { await TestBed.configureTestingModule({ imports: [DeleteModalComponent] }) - .compileComponents(); + .compileComponents(); fixture = TestBed.createComponent(DeleteModalComponent); component = fixture.componentInstance; diff --git a/src/components/delete-modal/delete-modal.component.ts b/src/components/delete-modal/delete-modal.component.ts index bb2085a..7726646 100644 --- a/src/components/delete-modal/delete-modal.component.ts +++ b/src/components/delete-modal/delete-modal.component.ts @@ -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', @@ -27,7 +21,7 @@ export class DeleteModalComponent { constructor() { this.confirmationForm = new FormGroup({ - name: new FormControl("",Validators.required) + name: new FormControl("", Validators.required) }) } diff --git a/src/pages/shows/shows.component.ts b/src/pages/shows/shows.component.ts index 2415bb8..bb6f9f2 100644 --- a/src/pages/shows/shows.component.ts +++ b/src/pages/shows/shows.component.ts @@ -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) => { + } ) } }