Revision 60202
Added by Argiro Kokogiannaki over 3 years ago
edit-div-help-content.component.ts | ||
---|---|---|
54 | 54 |
this.pageId = params['pageId']; |
55 | 55 |
|
56 | 56 |
if(!divContentId) { |
57 |
this.router.navigate(['/classContents'], { queryParams: { "communityId": this.communityPid} });
|
|
57 |
this.router.navigate(['../../'], { queryParams: { "communityId": this.communityPid} });
|
|
58 | 58 |
} |
59 | 59 |
|
60 | 60 |
this.getDivHelpContent(divContentId); |
... | ... | |
81 | 81 |
this._helpContentService.getPageByPortal(pageId,this.properties.adminToolsAPIURL, this.communityPid).subscribe( |
82 | 82 |
page => { |
83 | 83 |
if(this.properties.adminToolsPortalType != page.portalType) { |
84 |
this.router.navigate(['/classContents'], { queryParams: { "communityId": this.communityPid} });
|
|
84 |
this.router.navigate(['../../'], { queryParams: { "communityId": this.communityPid} });
|
|
85 | 85 |
} else { |
86 | 86 |
this.page = page; |
87 | 87 |
this.showLoading = false; |
... | ... | |
153 | 153 |
this._helpContentService.insertOrUpdateDivHelpContent(divHelpContent, this.properties.adminToolsAPIURL, this.communityPid).subscribe( |
154 | 154 |
_ => { |
155 | 155 |
if(this.pageId) { |
156 |
this.router.navigate( ['/classContents/'], { queryParams: { "communityId": this.communityPid, "pageId": this.pageId } } );
|
|
156 |
this.router.navigate( ['../../'], { queryParams: { "communityId": this.communityPid, "pageId": this.pageId } } );
|
|
157 | 157 |
} else { |
158 |
this.router.navigate(['/classContents'], { queryParams: { "communityId": this.communityPid } } );
|
|
158 |
this.router.navigate(['../../'], { queryParams: { "communityId": this.communityPid } } );
|
|
159 | 159 |
} |
160 | 160 |
this.showLoading = false; |
161 | 161 |
}, |
... | ... | |
172 | 172 |
this.updateErrorMessage = ""; |
173 | 173 |
|
174 | 174 |
if(this.pageId) { |
175 |
this.router.navigate( ['/classContents/'], { queryParams: { "communityId": this.communityPid, "pageId": this.pageId } } );
|
|
175 |
this.router.navigate( ['../../'], { queryParams: { "communityId": this.communityPid, "pageId": this.pageId } } );
|
|
176 | 176 |
} else { |
177 |
this.router.navigate(['/classContents'], { queryParams: { "communityId": this.communityPid } } );
|
|
177 |
this.router.navigate(['../../'], { queryParams: { "communityId": this.communityPid } } );
|
|
178 | 178 |
} |
179 | 179 |
} |
180 | 180 |
} |
Also available in: Unified diff
[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)