Revision 58444
Added by Konstantina Galouni about 4 years ago
curator.component.ts | ||
---|---|---|
72 | 72 |
this.userManagementService.getUserInfo().subscribe(user => { |
73 | 73 |
this.user = user; |
74 | 74 |
this.curatorId = this.user.id; |
75 |
this.curatorService.getCurator(this.properties, |
|
76 |
this.properties.adminToolsAPIURL + 'curator/' + this.curatorId).subscribe( |
|
75 |
this.curatorService.getCurator(this.properties, this.curatorId).subscribe( |
|
77 | 76 |
curator => { |
78 | 77 |
if (curator && Object.keys(curator).length > 0) { |
79 | 78 |
this.curator = curator; |
... | ... | |
120 | 119 |
if (this.curatorId != null && this.curatorId !== '') { |
121 | 120 |
this.showLoading = true; |
122 | 121 |
this.updateErrorMessage = ''; |
123 |
this.curatorService.getCurator(this.properties, |
|
124 |
this.properties.adminToolsAPIURL + 'curator/' + this.curatorId).subscribe( |
|
122 |
this.curatorService.getCurator(this.properties, this.curatorId).subscribe( |
|
125 | 123 |
curator => { |
126 | 124 |
if (curator) { |
127 | 125 |
this.curator = curator; |
... | ... | |
238 | 236 |
this.utilitiesService.deletePhoto(this.properties.utilsService + '/delete/' + this.curator.photo).subscribe(); |
239 | 237 |
} |
240 | 238 |
this.curator.photo = res.filename; |
241 |
this.curatorService.updateCurator(this.properties.adminToolsAPIURL + 'curator', |
|
242 |
this.curator).subscribe((curator) => { |
|
239 |
this.curatorService.updateCurator(this.properties, this.curator).subscribe((curator) => { |
|
243 | 240 |
if (curator) { |
244 | 241 |
this.handleSuccessfulSave('Your data has been saved successfully!'); |
245 | 242 |
this.newCurator = false; |
... | ... | |
259 | 256 |
this.utilitiesService.deletePhoto(this.properties.utilsService + '/delete/' + this.curator.photo).subscribe(); |
260 | 257 |
this.curator.photo = ''; |
261 | 258 |
} |
262 |
this.curatorService.updateCurator(this.properties.adminToolsAPIURL + 'curator', |
|
263 |
this.curator).subscribe((curator) => { |
|
259 |
this.curatorService.updateCurator(this.properties, this.curator).subscribe((curator) => { |
|
264 | 260 |
if (curator) { |
265 | 261 |
this.handleSuccessfulSave('Your data has been saved successfully!'); |
266 | 262 |
this.resetChange(); |
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".