From 4bdc08b42da85050077fce031b146ad4e9721452 Mon Sep 17 00:00:00 2001 From: ashwaq Date: Tue, 7 Jan 2020 15:42:55 +0300 Subject: [PATCH] add dashbored --- .../confirm-login/confirm-login.component.ts | 22 +++++++++---------- Mohem/src/app/hmg-common/hmg-common.module.ts | 2 ++ .../dashbored/dashbored.service.spec.ts | 12 ++++++++++ .../services/dashbored/dashbored.service.ts | 17 ++++++++++++++ .../app/notification/home/home.component.ts | 5 +++-- 5 files changed, 45 insertions(+), 13 deletions(-) create mode 100644 Mohem/src/app/hmg-common/services/dashbored/dashbored.service.spec.ts create mode 100644 Mohem/src/app/hmg-common/services/dashbored/dashbored.service.ts diff --git a/Mohem/src/app/authentication/confirm-login/confirm-login.component.ts b/Mohem/src/app/authentication/confirm-login/confirm-login.component.ts index f661aa72..fcb3a40e 100644 --- a/Mohem/src/app/authentication/confirm-login/confirm-login.component.ts +++ b/Mohem/src/app/authentication/confirm-login/confirm-login.component.ts @@ -568,31 +568,31 @@ export class ConfirmLoginComponent implements OnInit { - // title: 'Biometric Authetnciation', // (Android Only) | optional | Default: " Biometric Sign On" + title: 'Biometric Authetnciation', // (Android Only) | optional | Default: " 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 }) diff --git a/Mohem/src/app/hmg-common/hmg-common.module.ts b/Mohem/src/app/hmg-common/hmg-common.module.ts index 520715e4..84e44c4f 100644 --- a/Mohem/src/app/hmg-common/hmg-common.module.ts +++ b/Mohem/src/app/hmg-common/hmg-common.module.ts @@ -100,6 +100,7 @@ import {FileUploderProfileComponent} from './ui/file-uploder-profile/file-uplode 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' @NgModule({ imports: [ CommonModule, @@ -221,6 +222,7 @@ import { AccordinTabCustomComponent} from './ui/accordin-custom/accordin-tab-cus AccordinCustomComponent ], providers: [ + DashboredService, ConnectorService, TranslatorService, Globalization, diff --git a/Mohem/src/app/hmg-common/services/dashbored/dashbored.service.spec.ts b/Mohem/src/app/hmg-common/services/dashbored/dashbored.service.spec.ts new file mode 100644 index 00000000..1d4f49bd --- /dev/null +++ b/Mohem/src/app/hmg-common/services/dashbored/dashbored.service.spec.ts @@ -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(); + }); +}); diff --git a/Mohem/src/app/hmg-common/services/dashbored/dashbored.service.ts b/Mohem/src/app/hmg-common/services/dashbored/dashbored.service.ts new file mode 100644 index 00000000..8cb5a14a --- /dev/null +++ b/Mohem/src/app/hmg-common/services/dashbored/dashbored.service.ts @@ -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, + ) { } + + +} diff --git a/Mohem/src/app/notification/home/home.component.ts b/Mohem/src/app/notification/home/home.component.ts index 5383e1bf..2a1eb375 100644 --- a/Mohem/src/app/notification/home/home.component.ts +++ b/Mohem/src/app/notification/home/home.component.ts @@ -7,7 +7,6 @@ import { WorKListResponse } from "../models/workListResponse"; import { WorklistService } from "../service/worklist.service"; import { IonInfiniteScroll } from '@ionic/angular'; import { WorklistMainService } from '../service/work-list.main.service'; - @Component({ selector: "app-home", templateUrl: "./home.component.html", @@ -48,7 +47,7 @@ export class HomeComponent implements OnInit { public common: CommonService, public ts: TranslatorService, public WorklistService: WorklistService, - public workListService: WorklistMainService + public workListService: WorklistMainService, ) { this.WorkListObj = new WorkListRequest(); this.WorkListObj.P_NOTIFICATION_TYPE = "1"; @@ -332,4 +331,6 @@ export class HomeComponent implements OnInit { this.isSearch = !this.isSearch; } + + }