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>'
|
||||
})
|
||||
export class AppComponent {
|
||||
promptEvent: Event;
|
||||
constructor(translate: TranslateService) {
|
||||
translate.addLangs(['en', 'fr']);
|
||||
translate.setDefaultLang('en');
|
||||
|
||||
const browserLang: string = translate.getBrowserLang();
|
||||
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=>{
|
||||
this.excel_file_id = result.excel_file_id
|
||||
console.log(result,JSON.stringify(result));
|
||||
let formValues = {}
|
||||
// let formValues = {}
|
||||
let records = result.records
|
||||
if(records && records.length > 0) {
|
||||
records.forEach(val=>{
|
||||
if(val) {
|
||||
if(val.key_name == "fk_customer_segment") {
|
||||
let temp = this.customerSegmentList.filter(vv=>(vv.abbr).split(' ').join('') == (val.value).split(' ').join('') )
|
||||
if(records ) {
|
||||
// records.forEach(val=>{
|
||||
Object.keys(records).forEach(key_name=>{
|
||||
console.log(records,key_name,records[key_name])
|
||||
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) {
|
||||
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;
|
||||
pageIndex = 0;
|
||||
pageSize = 10;
|
||||
pageEvent: PageEvent;
|
||||
pageEvent: any;
|
||||
todaydate:Date = new Date();
|
||||
user_role_name: string;
|
||||
limitMsg: boolean = false;
|
||||
|
||||
@ -45,7 +45,7 @@ export class CompletedPdComponent implements OnInit, OnChanges {
|
||||
length = 5;
|
||||
pageIndex = 0;
|
||||
pageSize = 10;
|
||||
pageEvent: PageEvent;
|
||||
pageEvent: any;
|
||||
todaydate:Date = new Date();
|
||||
user_role_name: string;
|
||||
limitMsg: boolean = false;
|
||||
|
||||
@ -43,7 +43,7 @@ export class InprogressPdComponent implements OnInit, OnChanges {
|
||||
length = 5;
|
||||
pageIndex = 0;
|
||||
pageSize = 10;
|
||||
pageEvent: PageEvent;
|
||||
pageEvent: any;
|
||||
searchForm:FormGroup;
|
||||
user_role_name: string;
|
||||
limitMsg: boolean = false;
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<div fxLayout="row">
|
||||
<div fxFlex="50" class="pb-0 text-sm-left">
|
||||
<mat-form-field dividerColor="primary" style="width: 50%;">
|
||||
<input matInput [(ngModel)]="filterValue" placeholder="Filter">
|
||||
<input matInput [(ngModel)]="filterValue" placeholder="Search">
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<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;
|
||||
pageIndex = 0;
|
||||
pageSize = 10;
|
||||
pageEvent: PageEvent;
|
||||
pageEvent: any;
|
||||
user_role_name: string;
|
||||
limitMsg: boolean = false;
|
||||
common: any;
|
||||
|
||||
@ -44,7 +44,7 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
|
||||
length = 5;
|
||||
pageIndex = 0;
|
||||
pageSize = 10;
|
||||
pageEvent: PageEvent;
|
||||
pageEvent: any;
|
||||
user_role_name: string;
|
||||
limitMsg: boolean = false;
|
||||
common: any;
|
||||
|
||||
@ -141,13 +141,15 @@ export class FormComponent implements OnInit {
|
||||
if(result['dataStatus']) {
|
||||
let records = result['records']
|
||||
let formValues:any ={};
|
||||
if(records && records.length > 0) {
|
||||
records.forEach(val=>{
|
||||
if(val) {
|
||||
formValues[val.key_name] = val.value
|
||||
}
|
||||
})
|
||||
// console.log(this.form)
|
||||
if(records ) {
|
||||
formValues = records
|
||||
// records.forEach(val=>{
|
||||
// if(val) {
|
||||
// formValues[val.key_name] = val.value
|
||||
// }
|
||||
// })
|
||||
console.log(formValues)
|
||||
// debugger;
|
||||
this.form_answers= formValues
|
||||
setTimeout(()=>{
|
||||
this.form_answers = null
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<div fxLayout="row">
|
||||
<div fxFlex="50" class="pb-0 text-sm-left">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -81,7 +81,7 @@
|
||||
}
|
||||
],
|
||||
"is_repeatable":"1",
|
||||
"group_title":"Details of Key Stakeholders in the Business",
|
||||
"group_title":"Key Products and Business Contribution",
|
||||
"group_key":"key_stakeholders"
|
||||
}
|
||||
]
|
||||
|
||||
@ -156,7 +156,7 @@
|
||||
}
|
||||
],
|
||||
"is_repeatable":"1",
|
||||
"group_title":"Details of Key Stakeholders in the Business",
|
||||
"group_title":"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",
|
||||
"short_name": "optima",
|
||||
"name": "PD Genie Lender",
|
||||
"short_name": "Lender - PD Genie",
|
||||
"theme_color": "#1976d2",
|
||||
"background_color": "#fafafa",
|
||||
"display": "standalone",
|
||||
"scope": "/",
|
||||
"start_url": "/",
|
||||
"scope": "./",
|
||||
"start_url": "/lenderdemo",
|
||||
"icons": [
|
||||
{
|
||||
"src": "assets/icons/icon-72x72.png",
|
||||
|
||||