Fairoj : issue and pwa fixes
BIN
ng6-seed/icon.png
Executable file
|
After Width: | Height: | Size: 56 KiB |
@ -6,11 +6,17 @@ import { TranslateService} from '@ngx-translate/core';
|
|||||||
template: '<router-outlet></router-outlet>'
|
template: '<router-outlet></router-outlet>'
|
||||||
})
|
})
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
|
promptEvent: Event;
|
||||||
constructor(translate: TranslateService) {
|
constructor(translate: TranslateService) {
|
||||||
translate.addLangs(['en', 'fr']);
|
translate.addLangs(['en', 'fr']);
|
||||||
translate.setDefaultLang('en');
|
translate.setDefaultLang('en');
|
||||||
|
|
||||||
const browserLang: string = translate.getBrowserLang();
|
const browserLang: string = translate.getBrowserLang();
|
||||||
translate.use(browserLang.match(/en|fr/) ? browserLang : 'en');
|
translate.use(browserLang.match(/en|fr/) ? browserLang : 'en');
|
||||||
|
window.addEventListener('beforeinstallprompt', event => {
|
||||||
|
this.promptEvent = event;
|
||||||
|
// this.Pwa.promptEvent=event
|
||||||
|
alert(event);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1126,21 +1126,23 @@ searchFun(control:any,i:number,option){
|
|||||||
dialogRef.afterClosed().subscribe(result=>{
|
dialogRef.afterClosed().subscribe(result=>{
|
||||||
this.excel_file_id = result.excel_file_id
|
this.excel_file_id = result.excel_file_id
|
||||||
console.log(result,JSON.stringify(result));
|
console.log(result,JSON.stringify(result));
|
||||||
let formValues = {}
|
// let formValues = {}
|
||||||
let records = result.records
|
let records = result.records
|
||||||
if(records && records.length > 0) {
|
if(records ) {
|
||||||
records.forEach(val=>{
|
// records.forEach(val=>{
|
||||||
if(val) {
|
Object.keys(records).forEach(key_name=>{
|
||||||
if(val.key_name == "fk_customer_segment") {
|
console.log(records,key_name,records[key_name])
|
||||||
let temp = this.customerSegmentList.filter(vv=>(vv.abbr).split(' ').join('') == (val.value).split(' ').join('') )
|
if(records && records[key_name]) {
|
||||||
|
if(key_name == "fk_customer_segment") {
|
||||||
|
let temp = this.customerSegmentList.filter(vv=>(vv.abbr).split(' ').join('') == (records[key_name]).split(' ').join('') )
|
||||||
if(temp && temp.length > 0 && temp[0].customer_segment_id) {
|
if(temp && temp.length > 0 && temp[0].customer_segment_id) {
|
||||||
val.value = temp[0].customer_segment_id
|
records[key_name] = temp[0].customer_segment_id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
formValues[val.key_name] = val.value
|
// formValues[val.key_name] = val.value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this._PDtriggerForm.patchValue(formValues)
|
this._PDtriggerForm.patchValue(records)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,7 +46,7 @@ export class AllPdComponent implements OnInit, OnChanges {
|
|||||||
length = 5;
|
length = 5;
|
||||||
pageIndex = 0;
|
pageIndex = 0;
|
||||||
pageSize = 10;
|
pageSize = 10;
|
||||||
pageEvent: PageEvent;
|
pageEvent: any;
|
||||||
todaydate:Date = new Date();
|
todaydate:Date = new Date();
|
||||||
user_role_name: string;
|
user_role_name: string;
|
||||||
limitMsg: boolean = false;
|
limitMsg: boolean = false;
|
||||||
|
|||||||
@ -45,7 +45,7 @@ export class CompletedPdComponent implements OnInit, OnChanges {
|
|||||||
length = 5;
|
length = 5;
|
||||||
pageIndex = 0;
|
pageIndex = 0;
|
||||||
pageSize = 10;
|
pageSize = 10;
|
||||||
pageEvent: PageEvent;
|
pageEvent: any;
|
||||||
todaydate:Date = new Date();
|
todaydate:Date = new Date();
|
||||||
user_role_name: string;
|
user_role_name: string;
|
||||||
limitMsg: boolean = false;
|
limitMsg: boolean = false;
|
||||||
|
|||||||
@ -43,7 +43,7 @@ export class InprogressPdComponent implements OnInit, OnChanges {
|
|||||||
length = 5;
|
length = 5;
|
||||||
pageIndex = 0;
|
pageIndex = 0;
|
||||||
pageSize = 10;
|
pageSize = 10;
|
||||||
pageEvent: PageEvent;
|
pageEvent: any;
|
||||||
searchForm:FormGroup;
|
searchForm:FormGroup;
|
||||||
user_role_name: string;
|
user_role_name: string;
|
||||||
limitMsg: boolean = false;
|
limitMsg: boolean = false;
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<div fxLayout="row">
|
<div fxLayout="row">
|
||||||
<div fxFlex="50" class="pb-0 text-sm-left">
|
<div fxFlex="50" class="pb-0 text-sm-left">
|
||||||
<mat-form-field dividerColor="primary" style="width: 50%;">
|
<mat-form-field dividerColor="primary" style="width: 50%;">
|
||||||
<input matInput [(ngModel)]="filterValue" placeholder="Filter">
|
<input matInput [(ngModel)]="filterValue" placeholder="Search">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="50" class="pb-0 text-sm-right" *ngIf="user_role_name != 'sales'">
|
<div fxFlex="50" class="pb-0 text-sm-right" *ngIf="user_role_name != 'sales'">
|
||||||
|
|||||||
@ -45,7 +45,7 @@ export class QcCompletedPdComponent implements OnInit, OnChanges {
|
|||||||
length = 5;
|
length = 5;
|
||||||
pageIndex = 0;
|
pageIndex = 0;
|
||||||
pageSize = 10;
|
pageSize = 10;
|
||||||
pageEvent: PageEvent;
|
pageEvent: any;
|
||||||
user_role_name: string;
|
user_role_name: string;
|
||||||
limitMsg: boolean = false;
|
limitMsg: boolean = false;
|
||||||
common: any;
|
common: any;
|
||||||
|
|||||||
@ -44,7 +44,7 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
|
|||||||
length = 5;
|
length = 5;
|
||||||
pageIndex = 0;
|
pageIndex = 0;
|
||||||
pageSize = 10;
|
pageSize = 10;
|
||||||
pageEvent: PageEvent;
|
pageEvent: any;
|
||||||
user_role_name: string;
|
user_role_name: string;
|
||||||
limitMsg: boolean = false;
|
limitMsg: boolean = false;
|
||||||
common: any;
|
common: any;
|
||||||
|
|||||||
@ -141,13 +141,15 @@ export class FormComponent implements OnInit {
|
|||||||
if(result['dataStatus']) {
|
if(result['dataStatus']) {
|
||||||
let records = result['records']
|
let records = result['records']
|
||||||
let formValues:any ={};
|
let formValues:any ={};
|
||||||
if(records && records.length > 0) {
|
if(records ) {
|
||||||
records.forEach(val=>{
|
formValues = records
|
||||||
if(val) {
|
// records.forEach(val=>{
|
||||||
formValues[val.key_name] = val.value
|
// if(val) {
|
||||||
}
|
// formValues[val.key_name] = val.value
|
||||||
})
|
// }
|
||||||
// console.log(this.form)
|
// })
|
||||||
|
console.log(formValues)
|
||||||
|
// debugger;
|
||||||
this.form_answers= formValues
|
this.form_answers= formValues
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.form_answers = null
|
this.form_answers = null
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<div fxLayout="row">
|
<div fxLayout="row">
|
||||||
<div fxFlex="50" class="pb-0 text-sm-left">
|
<div fxFlex="50" class="pb-0 text-sm-left">
|
||||||
<mat-form-field dividerColor="primary" style="width: 50%;">
|
<mat-form-field dividerColor="primary" style="width: 50%;">
|
||||||
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Search">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -81,7 +81,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"is_repeatable":"1",
|
"is_repeatable":"1",
|
||||||
"group_title":"Details of Key Stakeholders in the Business",
|
"group_title":"Key Products and Business Contribution",
|
||||||
"group_key":"key_stakeholders"
|
"group_key":"key_stakeholders"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -156,7 +156,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"is_repeatable":"1",
|
"is_repeatable":"1",
|
||||||
"group_title":"Details of Key Stakeholders in the Business",
|
"group_title":"Banking Details",
|
||||||
"group_key":"banking_details"
|
"group_key":"banking_details"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 9.0 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 792 B After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 958 B After Width: | Height: | Size: 6.1 KiB |
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "optima",
|
"name": "PD Genie Lender",
|
||||||
"short_name": "optima",
|
"short_name": "Lender - PD Genie",
|
||||||
"theme_color": "#1976d2",
|
"theme_color": "#1976d2",
|
||||||
"background_color": "#fafafa",
|
"background_color": "#fafafa",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"scope": "/",
|
"scope": "./",
|
||||||
"start_url": "/",
|
"start_url": "/lenderdemo",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "assets/icons/icon-72x72.png",
|
"src": "assets/icons/icon-72x72.png",
|
||||||
|
|||||||