fixed tslint issues

arabic-version
umasoodch 6 years ago
parent 8f83946c48
commit 05ea5e349f

@ -101,7 +101,7 @@ import { OpenNativeSettings } from '@ionic-native/open-native-settings/ngx';
import { AccordinCustomComponent } from './ui/accordin-custom/accordin-custom.component';
import { AccordinTabCustomComponent} from './ui/accordin-custom/accordin-tab-custom/accordin-tab-custom.component'
import {DashboredService} from './services/dashbored/dashbored.service';
import {NgxGaugeModule} from 'ngx-gauge';
// import {NgxGaugeModule} from 'ngx-gauge';
import { StatsButtonComponent } from './ui/stats-button/stats-button.component';
import { ServicesButtonComponent } from './ui/services-button/services-button.component';
import {ConfirmLoginComponent} from '../authentication/confirm-login/confirm-login.component'
@ -125,7 +125,7 @@ import { CardFilterComponent} from './ui/card-filter/card-filter.component';
PdfViewerModule,
NgCircleProgressModule.forRoot(),
ChartModule,
NgxGaugeModule
// NgxGaugeModule
],
declarations: [
FabButtonComponent,
@ -243,7 +243,7 @@ import { CardFilterComponent} from './ui/card-filter/card-filter.component';
FileUploderProfileComponent,
AccordinTabCustomComponent,
AccordinCustomComponent,
NgxGaugeModule,
// NgxGaugeModule,
StatsButtonComponent,
ServicesButtonComponent,
ConfirmLoginComponent,

@ -37,7 +37,6 @@ export class HomeComponent implements OnInit {
inputDate: string;
filteredNotificationList: any;
isReachEnd = false;
public isAll = true;
public isPR = false;
public isPO = false;
@ -47,11 +46,11 @@ export class HomeComponent implements OnInit {
public isITG = false;
public isSearch = false;
public direction = 'ltr';
public ITGCount: number = 0;
public ITGCount = 0;
public ITGSegment: {name: string, code: any, data: any, style: boolean} [] = [];
public ITGAllItem: any = [];
public selectedITGToActive = false;
public ITGItem: any =[]
public ITGItem: any = [];
public activeSegment: any;
public currentActiveIndex = 0;
@ -400,7 +399,12 @@ export class HomeComponent implements OnInit {
this.workListService.getITGCount()
.subscribe((result: any) => {
for (let i = 0; i < result.RequestType.length; i++) {
this.ITGSegment[i] = {name: result.RequestType[i].RequestTypeName, code: result.RequestType[i].RequestTypeCode, data:result.RequestType[i].RequestDetails, style: false};
this.ITGSegment[i] = {
name: result.RequestType[i].RequestTypeName,
code: result.RequestType[i].RequestTypeCode,
data: result.RequestType[i].RequestDetails,
style: false
};
}
});
}
@ -431,6 +435,7 @@ export class HomeComponent implements OnInit {
this.ITGItem = [];
let count = 0;
this.activeSegment = selectedSegment;
// tslint:disable-next-line: prefer-for-of
for (let i = 0; i < this.ITGSegment.length; i++) {
if (this.ITGSegment[i].code === selectedSegment) {
this.ITGSegment[i].style = true;

Loading…
Cancel
Save