diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts index af5b6c3..c004636 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts @@ -432,7 +432,7 @@ export class ViewPdComponent implements OnInit, OnDestroy { .subscribe(dataresult => { console.log("cloesed",dataresult) if(dataresult == undefined) { - this.ListPdComponent.viewPDDetails({id:this.viewID,string:this.masterRandomString}) + // this.ListPdComponent.viewPDDetails({id:this.viewID,string:this.masterRandomString}) } // this.notifier.notify('success', 'Successfully allocated.!'); // this.loadTemplates(this.startPD,2,this.randomString); @@ -604,7 +604,7 @@ export class ViewPdComponent implements OnInit, OnDestroy { url = window.location.origin+'/#/personal_discussion/pdlist/viewpd?str='+this.viewID+'/'+this.masterRandomString+'/link'; } else{ - url = window.location.origin+'/pd/#/personal_discussion/pdlist/viewpd?str='+this.viewID+'/'+this.masterRandomString+'/link'; + url = window.location.origin+'/vendor/#/personal_discussion/pdlist/viewpd?str='+this.viewID+'/'+this.masterRandomString+'/link'; } if(url) { this.copyToClipBoard(url) @@ -643,7 +643,8 @@ export class ViewPdComponent implements OnInit, OnDestroy { // this.viewPdDetails(this.childData); // } ngOnDestroy(): void { - if (this.destroyType == 1) { + console.log("View PD Destroy component called",this.is_from_link) + if (this.destroyType == 1 && !this.is_from_link) { this.ListPdComponent.pdListLoad(true); } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/manage-pd.routing.ts b/ng6-seed/src/app/personal-discussion/manage-pd/manage-pd.routing.ts index 48c56a6..fdca1e3 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/manage-pd.routing.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/manage-pd.routing.ts @@ -6,8 +6,7 @@ import { MapPdViewComponent } from './list-pd/map-pd-view/map-pd-view.component' import { AddPdComponent } from '../manage-pd/list-pd/add-pd/add-pd.component'; import { ViewPdComponent } from '../manage-pd/list-pd/view-pd/view-pd.component'; import { PdReportComponent } from './list-pd/pd-report/pd-report.component'; -import { CommonQuesComponent } from './list-pd/pd-questions/common-ques/common-ques.component'; -import { PdQuestionsModule } from './list-pd/pd-questions/pd-questions.module'; + /* * manage pd router */