Project

General

Profile

« Previous | Next » 

Revision 60202

[Library | Trunk]

Dashboard - Admin tool pages:
- add tabs components
- add rout module (without guards)
- put tabs and page-content in pages, classes, entities pages

Stakeholder:
initial try to add filters for country and organization fields (doesn't work properly)

View differences:

new-div-help-content.component.ts
63 63
      this._helpContentService.getPageByPortal(pageId,this.properties.adminToolsAPIURL, this.communityPid).subscribe(
64 64
        page => {
65 65
          if(this.properties.adminToolsPortalType != page.portalType) {
66
            this.router.navigate(['/classContents'], { queryParams: { "communityId": this.communityPid} });
66
            this.router.navigate(['../../'], { queryParams: { "communityId": this.communityPid}, relativeTo: this.route });
67 67
          } else {
68 68
            this.page = page;
69 69
            this.showLoading = false;
......
87 87
            this._helpContentService.insertOrUpdateDivHelpContent(divHelpContent, this.properties.adminToolsAPIURL, this.communityPid).subscribe(
88 88
                _ => {
89 89
                  if(this.pageId) {
90
                    this.router.navigate( ['/classContents/'], { queryParams: { "communityId": this.communityPid, "pageId": this.pageId  } } );
90
                    this.router.navigate( ['../../'], { queryParams: { "communityId": this.communityPid, "pageId": this.pageId  } , relativeTo: this.route} );
91 91
                  } else {
92
                    this.router.navigate(['/classContents'], { queryParams: { "communityId": this.communityPid } } );
92
                    this.router.navigate(['../../'], { queryParams: { "communityId": this.communityPid } , relativeTo: this.route} );
93 93
                  }
94 94
                  this.showLoading = false;
95 95
                },
......
103 103

  
104 104
    public cancelCustom() {
105 105
      if(this.pageId) {
106
        this.router.navigate( ['/classContents/'], { queryParams: { "communityId": this.communityPid, "pageId": this.pageId  } } );
106
        this.router.navigate( ['../../'], { queryParams: { "communityId": this.communityPid, "pageId": this.pageId  }, relativeTo: this.route } );
107 107
      } else {
108
        this.router.navigate(['/classContents'], { queryParams: { "communityId": this.communityPid } } );
108
        this.router.navigate(['../../'], { queryParams: { "communityId": this.communityPid }, relativeTo: this.route } );
109 109
      }
110 110
    }
111 111

  

Also available in: Unified diff