add dashbored

Dashbored
ashwaq 6 years ago
parent 10458f2e0f
commit 4bdc08b42d

@ -568,31 +568,31 @@ export class ConfirmLoginComponent implements OnInit {
// title: 'Biometric Authetnciation', // (Android Only) | optional | Default: "<APP_NAME> Biometric Sign On" title: 'Biometric Authetnciation', // (Android Only) | optional | Default: "<APP_NAME> Biometric Sign On"
// subtitle: 'Coolest Plugin ever' ,// (Android Only) | optional | Default: null subtitle: 'Coolest Plugin ever' ,// (Android Only) | optional | Default: null
// description: this.ts.trPK("general", "auth-please"),// optional | Default: null description: this.ts.trPK("general", "auth-please"),// optional | Default: null
// fallbackButtonTitle: this.ts.trPK("general", "use-pin"), // optional | When disableBackup is false defaults to "Use Pin". fallbackButtonTitle: this.ts.trPK("general", "use-pin"), // optional | When disableBackup is false defaults to "Use Pin".
// // When disableBackup is true defaults to "Cancel" // When disableBackup is true defaults to "Cancel"
// disableBackup:true, // optional | default: false disableBackup:true, // optional | default: false
clientId: "Fingerprint Authetnciation", // clientId: "Fingerprint Authetnciation",
clientSecret: "Ate343_9347lajF", // Only necessary for Android // clientSecret: "Ate343_9347lajF", // Only necessary for Android
disableBackup: true, // Only for Android(optional) // disableBackup: true, // Only for Android(optional)
localizedFallbackTitle: this.ts.trPK("general", "use-pin"), // Only for iOS // localizedFallbackTitle: this.ts.trPK("general", "use-pin"), // Only for iOS
localizedReason: this.ts.trPK("general", "auth-please") // Only for iOS // localizedReason: this.ts.trPK("general", "auth-please") // Only for iOS
}) })

@ -100,6 +100,7 @@ import {FileUploderProfileComponent} from './ui/file-uploder-profile/file-uplode
import { OpenNativeSettings } from '@ionic-native/open-native-settings/ngx'; import { OpenNativeSettings } from '@ionic-native/open-native-settings/ngx';
import { AccordinCustomComponent } from './ui/accordin-custom/accordin-custom.component'; import { AccordinCustomComponent } from './ui/accordin-custom/accordin-custom.component';
import { AccordinTabCustomComponent} from './ui/accordin-custom/accordin-tab-custom/accordin-tab-custom.component' import { AccordinTabCustomComponent} from './ui/accordin-custom/accordin-tab-custom/accordin-tab-custom.component'
import {DashboredService} from './services/dashbored/dashbored.service'
@NgModule({ @NgModule({
imports: [ imports: [
CommonModule, CommonModule,
@ -221,6 +222,7 @@ import { AccordinTabCustomComponent} from './ui/accordin-custom/accordin-tab-cus
AccordinCustomComponent AccordinCustomComponent
], ],
providers: [ providers: [
DashboredService,
ConnectorService, ConnectorService,
TranslatorService, TranslatorService,
Globalization, Globalization,

@ -0,0 +1,12 @@
import { TestBed } from '@angular/core/testing';
import { DashboredService } from './dashbored.service';
describe('DashboredService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: DashboredService = TestBed.get(DashboredService);
expect(service).toBeTruthy();
});
});

@ -0,0 +1,17 @@
import { Injectable } from '@angular/core';
import { AuthenticationService } from "src/app/hmg-common/services/authentication/authentication.service";
import { ConnectorService } from "src/app/hmg-common/services/connector/connector.service";
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class DashboredService {
constructor(
public api: ConnectorService,
public authService: AuthenticationService,
) { }
}

@ -7,7 +7,6 @@ import { WorKListResponse } from "../models/workListResponse";
import { WorklistService } from "../service/worklist.service"; import { WorklistService } from "../service/worklist.service";
import { IonInfiniteScroll } from '@ionic/angular'; import { IonInfiniteScroll } from '@ionic/angular';
import { WorklistMainService } from '../service/work-list.main.service'; import { WorklistMainService } from '../service/work-list.main.service';
@Component({ @Component({
selector: "app-home", selector: "app-home",
templateUrl: "./home.component.html", templateUrl: "./home.component.html",
@ -48,7 +47,7 @@ export class HomeComponent implements OnInit {
public common: CommonService, public common: CommonService,
public ts: TranslatorService, public ts: TranslatorService,
public WorklistService: WorklistService, public WorklistService: WorklistService,
public workListService: WorklistMainService public workListService: WorklistMainService,
) { ) {
this.WorkListObj = new WorkListRequest(); this.WorkListObj = new WorkListRequest();
this.WorkListObj.P_NOTIFICATION_TYPE = "1"; this.WorkListObj.P_NOTIFICATION_TYPE = "1";
@ -332,4 +331,6 @@ export class HomeComponent implements OnInit {
this.isSearch = !this.isSearch; this.isSearch = !this.isSearch;
} }
} }

Loading…
Cancel
Save