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;">
|
||||
<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>
|
||||
<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>
|
||||
<mat-divider></mat-divider>
|
||||
</div>
|
||||
|
||||
@ -43,7 +43,8 @@ export class SalesPdComponent implements OnInit {
|
||||
user_type: string = '';
|
||||
is_sales_login: boolean = false
|
||||
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";
|
||||
roleID: any;
|
||||
local_spdid: string;
|
||||
@ -157,7 +158,7 @@ export class SalesPdComponent implements OnInit {
|
||||
|
||||
console.log('Listing Page '+inx+') Final Link = '+this.finallink);
|
||||
val.link = this.finallink;
|
||||
localStorage.setItem('redirect_salesapp_link', this.redirect_salesapp_link);
|
||||
|
||||
|
||||
if (products.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 { FormComponent } from 'app/fly-hi/forms-dynamic/form/form.component';
|
||||
import { ImageVideoComponent } from 'app/fly-hi/image-video/image-video.component';
|
||||
|
||||
import { environment } from 'environments/environment';
|
||||
@Component({
|
||||
selector: 'app-section-list',
|
||||
templateUrl: './section-list.component.html',
|
||||
@ -620,7 +620,7 @@ getListofPD() {
|
||||
let PDSno = this.salesPdData[0].sales_pd_sno;
|
||||
let status = 1;
|
||||
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 user_details = localStorage.getItem('user_details');
|
||||
let user_details_json = (JSON.parse(user_details));
|
||||
|
||||
@ -5,6 +5,8 @@ export const environment = {
|
||||
|
||||
apiEndpoint: 'https://api.pdgenie.com/sparqprod/api/',
|
||||
|
||||
redirectSalesapp : "https://newlos.smcfinance.com/#/redirect?saltkey=$2y$10$H4vSrWl15syQHO.tsT0DdOF7pYSTKZBT85sOFCJerttTdObBRsB36",
|
||||
|
||||
authorization: 'TnAwuc64pVpcB9xf',
|
||||
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://apitest.pdgenie.com/sparqtest/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',
|
||||
|
||||
|
||||
@ -11,7 +11,8 @@ export const environment = {
|
||||
// apiEndpoint: 'https://apitest.pdgenie.com/sparqtest/api/',
|
||||
apiEndpoint: ' https://apitest.pdgenie.com/sparqtest/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',
|
||||
|
||||
// firebase: {
|
||||
@ -74,5 +75,4 @@ export const environment = {
|
||||
s3_endpoint: '',
|
||||
accessToken:'',
|
||||
//apiUrl:'http://localhost/sparqapi/api/'
|
||||
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user