Commit 057d2639 by Chamath

S55069629 - Home page keep loading.

Route change for angular pages.
parent 4f487f18
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"apps": [ "apps": [
{ {
"root": "src", "root": "src",
"outDir": "dist", "outDir": "/home/chamathkalhara/Deploy/PerformaInvestments/webapps/cmsWebApp/ng",
"assets": [ "assets": [
"assets", "assets",
"app/oneit/assets" "app/oneit/assets"
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
"@angular/platform-browser": "^5.2.0", "@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0", "@angular/platform-browser-dynamic": "^5.2.0",
"@angular/router": "^5.2.0", "@angular/router": "^5.2.0",
"angular-google-tag-manager": "^1.1.1",
"angular-tslint-rules": "^1.20.1", "angular-tslint-rules": "^1.20.1",
"bootstrap": "3.3.7", "bootstrap": "3.3.7",
"chart.js": "2.7.1", "chart.js": "2.7.1",
......
...@@ -48,6 +48,7 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy { ...@@ -48,6 +48,7 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy {
jobApplicationID: string; jobApplicationID: string;
jobNotSaved: boolean = false; jobNotSaved: boolean = false;
gotoURL: any; gotoURL: any;
dataLayer: any;
constructor( constructor(
private deviceService: DeviceDetectorService, private deviceService: DeviceDetectorService,
...@@ -107,6 +108,13 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy { ...@@ -107,6 +108,13 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy {
this.jobNotSaved = message.message; this.jobNotSaved = message.message;
this.changeDetector.detectChanges(); this.changeDetector.detectChanges();
} }
} else if (message.name === 'dataLayer') {
if(message.message != null) {
console.log(message.message[0]);
this.dataLayer = message.message[0];
console.log(message.message[0].userId);
console.log(message.message[0].stripeId);
}
} }
} }
)); ));
...@@ -241,6 +249,10 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy { ...@@ -241,6 +249,10 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy {
} }
menuItemClick(routerURL): void { menuItemClick(routerURL): void {
if (!(routerURL instanceof Array)) {
routerURL = ['/admin/' + routerURL];
}
if (this.jobNotSaved) { if (this.jobNotSaved) {
this.gotoURL = routerURL; this.gotoURL = routerURL;
this.modalService.show(this.jobNotSavedModal); this.modalService.show(this.jobNotSavedModal);
...@@ -255,6 +267,7 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy { ...@@ -255,6 +267,7 @@ export class AdminPortalLayoutComponent implements OnInit, OnDestroy {
gotoNextPage() { gotoNextPage() {
this.modalService.hide(1); this.modalService.hide(1);
this.jobNotSaved = false;
this.router.navigate(this.gotoURL); this.router.navigate(this.gotoURL);
} }
......
export const environment = { export const environment = {
production: false, production: false,
baseUrl: 'http://vm4.qa03.oneit.com.au/matchd/', baseUrl: 'http://localhost:8080/performa/',
envName: 'QA', envName: 'QA',
gtmKey: 'GTM-M6M4SW6' gtmKey: 'GTM-M6M4SW6'
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment