[Trunk|Admin]: Curator page: Check if curator is an empty object
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@56314 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
3abaaba401
commit
29decbb0ee
|
@ -55,7 +55,7 @@ export class CuratorComponent implements OnInit {
|
||||||
this.curatorService.getCurator(this.properties,
|
this.curatorService.getCurator(this.properties,
|
||||||
this.properties.adminToolsAPIURL + 'curator/' + this.curatorId).subscribe(
|
this.properties.adminToolsAPIURL + 'curator/' + this.curatorId).subscribe(
|
||||||
curator => {
|
curator => {
|
||||||
if (curator) {
|
if (curator && Object.keys(curator).length > 0) {
|
||||||
this.curator = curator;
|
this.curator = curator;
|
||||||
this.curator.email = Session.getUserEmail();
|
this.curator.email = Session.getUserEmail();
|
||||||
if (this.curator.photo && this.curator.photo !== '') {
|
if (this.curator.photo && this.curator.photo !== '') {
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
|
|
||||||
"cacheUrl" :"http://scoobydoo.di.uoa.gr:3000/get?url=",
|
"cacheUrl" :"http://scoobydoo.di.uoa.gr:3000/get?url=",
|
||||||
|
|
||||||
"adminToolsAPIURL" :"http://scoobydoo.di.uoa.gr:8080/uoa-admin-tools/",
|
"adminToolsAPIURL" :"http://mpagasas.di.uoa.gr:8080/uoa-admin-tools/",
|
||||||
|
|
||||||
"adminToolsCommunity" :"openaire",
|
"adminToolsCommunity" :"openaire",
|
||||||
"communityAPI": "https://dev-openaire.d4science.org/openaire/community/",
|
"communityAPI": "https://dev-openaire.d4science.org/openaire/community/",
|
||||||
|
|
Loading…
Reference in New Issue