Revision 58444
Added by Konstantina Galouni about 4 years ago
customization.component.ts | ||
---|---|---|
67 | 67 |
this.showLoading = true; |
68 | 68 |
this.errorMessage = ''; |
69 | 69 |
this.successfulSaveMessage = ''; |
70 |
this.layoutService.getLayout(this.communityId, this.properties.adminToolsAPIURL + 'community/').subscribe(layout => {
|
|
70 |
this.layoutService.getLayout(this.properties, this.communityId).subscribe(layout => {
|
|
71 | 71 |
this.publishedCustomizationOptions = (layout?layout:new CustomizationOptions()); |
72 | 72 |
this.initializeCustomizationOptions(true); |
73 | 73 |
}, error => { |
... | ... | |
89 | 89 |
queryParams: {'errorCode': LoginErrorCodes.NOT_VALID, 'redirectUrl': this._router.url} |
90 | 90 |
}); |
91 | 91 |
} |
92 |
this.layoutService.saveLayout(this.communityId, this.properties.adminToolsAPIURL + 'community/', this.draftCustomizationOptions).subscribe(layout => {
|
|
92 |
this.layoutService.saveLayout(this.properties, this.communityId, this.draftCustomizationOptions).subscribe(layout => {
|
|
93 | 93 |
this.publishedCustomizationOptions = layout; |
94 | 94 |
this.initializeCustomizationOptions(JSON.stringify(this.publishedCustomizationOptions) != this.previewCustomization); |
95 | 95 |
this.successfulSaveMessage = "Customization Options saved!" |
Also available in: Unified diff
[Trunk | Admin]:
1. community-edit-form.component.ts & manage-subscribers.component.ts &curator.component.ts & customization.component.ts & manage-user-notifications.component.ts & manage-user-notifications.service.ts:
create request path in service and "properties" as first parameter in methods (curator.service.ts, layout.service.ts, subscribe.service.ts).
2. manageContentProviders.service.ts & manageProjects.service.ts & manageZenodoCommunities.service.ts: Rename "communityId" to "pid".