fix linting

This commit is contained in:
Zuhdan Ubay 2020-05-19 09:58:28 +07:00
parent 7c825ed491
commit 436db5333b
3 changed files with 9 additions and 3 deletions

View file

@ -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);
}
}

View file

@ -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();
}

View file

@ -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';