Redirect Url based on ENV : ps
This commit is contained in:
parent
a4a474192d
commit
c0f7160cc1
@ -56,7 +56,7 @@
|
|||||||
<div fxFlex.xs="10" fxFlex.sm="10" class="webhide" style="text-align: right;">
|
<div fxFlex.xs="10" fxFlex.sm="10" class="webhide" style="text-align: right;">
|
||||||
<button style="width: 43px !important;height: 23px !important;line-height: 0px !important;" mat-button mat-icon-button type="button" [disabled]="details.status != 'COMPLETED'"
|
<button style="width: 43px !important;height: 23px !important;line-height: 0px !important;" mat-button mat-icon-button type="button" [disabled]="details.status != 'COMPLETED'"
|
||||||
color="primary" (click)="salesPDpdf(details.sales_pd_id)"><mat-icon>file_download</mat-icon></button><br>
|
color="primary" (click)="salesPDpdf(details.sales_pd_id)"><mat-icon>file_download</mat-icon></button><br>
|
||||||
<button mat-button mat-icon-button (click)="newPortal()" type="button" matTooltip="link" matTooltipPosition="above" color="primary"><mat-icon>link</mat-icon></button>
|
<button mat-button mat-icon-button (click)="newPortal(details.link)" type="button" matTooltip="link" matTooltipPosition="above" color="primary"><mat-icon>link</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -43,7 +43,8 @@ export class SalesPdComponent implements OnInit {
|
|||||||
user_type: string = '';
|
user_type: string = '';
|
||||||
is_sales_login: boolean = false
|
is_sales_login: boolean = false
|
||||||
public finallink: any;
|
public finallink: any;
|
||||||
public redirect_salesapp_link = "https://new-los-frontend-aut-m54bsjg7fq-em.a.run.app/#/redirect?saltkey=$2y$10$H4vSrWl15syQHO.tsT0DdOF7pYSTKZBT85sOFCJerttTdObBRsB36";
|
public redirect_salesapp_link = environment.redirectSalesapp;
|
||||||
|
|
||||||
// public redirect_salesapp_link = "https://sales-app-frontend-m54bsjg7fq-em.a.run.app/secure?saltkey=$2y$10$H4vSrWl15syQHO.tsT0DdOF7pYSTKZBT85sOFCJerttTdObBRsB36";
|
// public redirect_salesapp_link = "https://sales-app-frontend-m54bsjg7fq-em.a.run.app/secure?saltkey=$2y$10$H4vSrWl15syQHO.tsT0DdOF7pYSTKZBT85sOFCJerttTdObBRsB36";
|
||||||
roleID: any;
|
roleID: any;
|
||||||
local_spdid: string;
|
local_spdid: string;
|
||||||
@ -157,7 +158,7 @@ export class SalesPdComponent implements OnInit {
|
|||||||
|
|
||||||
console.log('Listing Page '+inx+') Final Link = '+this.finallink);
|
console.log('Listing Page '+inx+') Final Link = '+this.finallink);
|
||||||
val.link = this.finallink;
|
val.link = this.finallink;
|
||||||
localStorage.setItem('redirect_salesapp_link', this.redirect_salesapp_link);
|
|
||||||
|
|
||||||
if (products.length > 0) {
|
if (products.length > 0) {
|
||||||
if (products.filter(pro => pro == val.product_id).length == 0) {
|
if (products.filter(pro => pro == val.product_id).length == 0) {
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import { NotifierService } from 'angular-notifier';
|
|||||||
import { ConstantsProvider } from 'app/providers/constants/constants';
|
import { ConstantsProvider } from 'app/providers/constants/constants';
|
||||||
import { FormComponent } from 'app/fly-hi/forms-dynamic/form/form.component';
|
import { FormComponent } from 'app/fly-hi/forms-dynamic/form/form.component';
|
||||||
import { ImageVideoComponent } from 'app/fly-hi/image-video/image-video.component';
|
import { ImageVideoComponent } from 'app/fly-hi/image-video/image-video.component';
|
||||||
|
import { environment } from 'environments/environment';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-section-list',
|
selector: 'app-section-list',
|
||||||
templateUrl: './section-list.component.html',
|
templateUrl: './section-list.component.html',
|
||||||
@ -620,7 +620,7 @@ getListofPD() {
|
|||||||
let PDSno = this.salesPdData[0].sales_pd_sno;
|
let PDSno = this.salesPdData[0].sales_pd_sno;
|
||||||
let status = 1;
|
let status = 1;
|
||||||
if(this.salesPdData[0].status == 'COMPLETED'){ status = 2; }
|
if(this.salesPdData[0].status == 'COMPLETED'){ status = 2; }
|
||||||
let link = localStorage.getItem('redirect_salesapp_link');
|
let link = environment.redirectSalesapp;
|
||||||
let login_type_id : any = localStorage.getItem('login_type_id');
|
let login_type_id : any = localStorage.getItem('login_type_id');
|
||||||
let user_details = localStorage.getItem('user_details');
|
let user_details = localStorage.getItem('user_details');
|
||||||
let user_details_json = (JSON.parse(user_details));
|
let user_details_json = (JSON.parse(user_details));
|
||||||
|
|||||||
@ -5,6 +5,8 @@ export const environment = {
|
|||||||
|
|
||||||
apiEndpoint: 'https://api.pdgenie.com/sparqprod/api/',
|
apiEndpoint: 'https://api.pdgenie.com/sparqprod/api/',
|
||||||
|
|
||||||
|
redirectSalesapp : "https://newlos.smcfinance.com/#/redirect?saltkey=$2y$10$H4vSrWl15syQHO.tsT0DdOF7pYSTKZBT85sOFCJerttTdObBRsB36",
|
||||||
|
|
||||||
authorization: 'TnAwuc64pVpcB9xf',
|
authorization: 'TnAwuc64pVpcB9xf',
|
||||||
login_string: "cognito-idp.ap-south-1.amazonaws.com/ap-south-1_MlTee1O5V",
|
login_string: "cognito-idp.ap-south-1.amazonaws.com/ap-south-1_MlTee1O5V",
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,8 @@ export const environment = {
|
|||||||
// apiEndpoint: 'https://demo.pdgenie.com/sparqtest/api/',
|
// apiEndpoint: 'https://demo.pdgenie.com/sparqtest/api/',
|
||||||
apiEndpoint: ' https://apitest.pdgenie.com/sparqtest/api/',
|
apiEndpoint: ' https://apitest.pdgenie.com/sparqtest/api/',
|
||||||
// apiEndpoint: 'http://localhost/AWSEC2/sparqapi/api/',
|
// apiEndpoint: 'http://localhost/AWSEC2/sparqapi/api/',
|
||||||
|
redirectSalesapp : "https://new-los-frontend-aut-m54bsjg7fq-em.a.run.app/#/redirect?saltkey=$2y$10$H4vSrWl15syQHO.tsT0DdOF7pYSTKZBT85sOFCJerttTdObBRsB36",
|
||||||
|
|
||||||
|
|
||||||
authorization: 'sparqvenba2018',
|
authorization: 'sparqvenba2018',
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,7 @@ export const environment = {
|
|||||||
// apiEndpoint: 'https://apitest.pdgenie.com/sparqtest/api/',
|
// apiEndpoint: 'https://apitest.pdgenie.com/sparqtest/api/',
|
||||||
apiEndpoint: ' https://apitest.pdgenie.com/sparqtest/api/',
|
apiEndpoint: ' https://apitest.pdgenie.com/sparqtest/api/',
|
||||||
// apiEndpoint: 'http://localhost/AWSEC2/sparqapi/api/',
|
// apiEndpoint: 'http://localhost/AWSEC2/sparqapi/api/',
|
||||||
|
redirectSalesapp : "https://new-los-frontend-aut-m54bsjg7fq-em.a.run.app/#/redirect?saltkey=$2y$10$H4vSrWl15syQHO.tsT0DdOF7pYSTKZBT85sOFCJerttTdObBRsB36",
|
||||||
|
|
||||||
authorization: 'sparqvenba2018',
|
authorization: 'sparqvenba2018',
|
||||||
|
|
||||||
@ -74,5 +75,4 @@ export const environment = {
|
|||||||
s3_endpoint: '',
|
s3_endpoint: '',
|
||||||
accessToken:'',
|
accessToken:'',
|
||||||
//apiUrl:'http://localhost/sparqapi/api/'
|
//apiUrl:'http://localhost/sparqapi/api/'
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user