diff --git a/src/app/pages/promotion/promotion-detail/promotion-detail.component.ts b/src/app/pages/promotion/promotion-detail/promotion-detail.component.ts index 32926bf6..f29b5831 100644 --- a/src/app/pages/promotion/promotion-detail/promotion-detail.component.ts +++ b/src/app/pages/promotion/promotion-detail/promotion-detail.component.ts @@ -12,7 +12,7 @@ export class PromotionDetailComponent { data: PromotionList; constructor(public windowRef: NbWindowRef, @Inject(NB_WINDOW_CONTEXT) context) { - if(context != null){ + if (context != null) { this.data = Object.assign({}, context.data); } } diff --git a/src/app/pages/promotion/promotion.component.ts b/src/app/pages/promotion/promotion.component.ts index 9d86f1bb..93da9353 100644 --- a/src/app/pages/promotion/promotion.component.ts +++ b/src/app/pages/promotion/promotion.component.ts @@ -62,7 +62,6 @@ export class PromotionComponent implements OnInit { onCreateConfirm(event): void { if (window.confirm('Are you sure you want to save?')) { event.confirm.resolve(); - console.log('hooray ' + event.newData.code); } else { event.confirm.reject(); } diff --git a/src/app/pages/promotion/promotion.module.ts b/src/app/pages/promotion/promotion.module.ts index 1a03427c..cd06dc11 100644 --- a/src/app/pages/promotion/promotion.module.ts +++ b/src/app/pages/promotion/promotion.module.ts @@ -1,5 +1,12 @@ import { NgModule } from '@angular/core'; -import { NbCardModule, NbIconModule, NbInputModule, NbTreeGridModule, NbButtonModule, NbCheckboxModule, NbRadioModule } from '@nebular/theme'; +import { + NbCardModule, + NbIconModule, + NbInputModule, + NbTreeGridModule, + NbButtonModule, + NbCheckboxModule, + NbRadioModule} from '@nebular/theme'; import { Ng2SmartTableModule } from 'ng2-smart-table'; import { ThemeModule } from '../../@theme/theme.module';