mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
fix linting
This commit is contained in:
parent
7c825ed491
commit
436db5333b
3 changed files with 9 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue