Don't show 'Curated by' in case of empty array of managers
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@51571 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
76d8ef7d80
commit
ec13bdc104
|
@ -42,7 +42,7 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<span *ngIf="community.managers != null && community.managers[0] != ''"> Curated by:
|
<span *ngIf="community.managers != null && community.managers[0] != '' && community.managers[0] != null"> Curated by:
|
||||||
<span *ngFor='let manager of community.managers; let i = index'>{{manager.substr(0, manager.indexOf('@'))}}<span *ngIf="manager.includes('@') == 0">{{manager}}</span><span *ngIf="i<(community.managers.length-1)">,</span>
|
<span *ngFor='let manager of community.managers; let i = index'>{{manager.substr(0, manager.indexOf('@'))}}<span *ngIf="manager.includes('@') == 0">{{manager}}</span><span *ngIf="i<(community.managers.length-1)">,</span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in New Issue