[Connect | Trunk]: Fix a bug on my-communities

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@58654 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2020-05-08 13:20:05 +00:00
parent 6af7ae4797
commit 73971358ad
3 changed files with 15 additions and 7 deletions

View File

@ -27,9 +27,12 @@
</div>
<div class="uk-text-right uk-margin-top">
<a *ngIf="researchCommunities.length > 5" class="portal-link uk-text-uppercase uk-text-bold uk-text-small"
<a *ngIf="researchCommunities.length > 5" class="uk-display-inline-block portal-link uk-text-uppercase uk-text-bold uk-text-small"
routerLinkActive="router-link-active" routerLink="/search/find/communities">
Browse All >
<span class="uk-flex uk-flex-middle">
<span> Browse All</span>
<span uk-icon="chevron-right"></span>
</span>
</a>
</div>
</div>

View File

@ -34,9 +34,12 @@
</div>
</div>
<div *ngIf="managerOfCommunities.length > 3" class="uk-text-right uk-width-1-1 uk-margin-top">
<a [queryParams]="{role: quote('manager')}" class="portal-link uk-text-uppercase uk-text-bold uk-text-small"
<a [queryParams]="{role: quote('manager')}" class="uk-display-inline-block portal-link uk-text-uppercase uk-text-bold uk-text-small"
routerLinkActive="router-link-active" routerLink="/search/find/communities">
<div>View all ({{managerOfCommunities.length | number}}) ></div>
<span class="uk-flex uk-flex-middle">
<span>View all ({{managerOfCommunities.length | number}})</span>
<span uk-icon="chevron-right"></span>
</span>
</a>
</div>
</div>
@ -61,9 +64,12 @@
</div>
</div>
<div *ngIf="subscriberOfCommunities.length > 3" class="uk-text-right uk-width-1-1 uk-margin-top">
<a [queryParams]="{status: quote('subscribed')}" class="portal-link uk-text-uppercase uk-text-bold uk-text-small"
<a [queryParams]="{status: quote('subscribed')}" class="uk-display-inline-block portal-link uk-text-uppercase uk-text-bold uk-text-small"
routerLinkActive="router-link-active" routerLink="/search/find/communities">
<div>View all ({{subscriberOfCommunities.length | number}}) ></div>
<span class="uk-flex uk-flex-middle">
<span>View all ({{subscriberOfCommunities.length | number}})</span>
<span uk-icon="chevron-right"></span>
</span>
</a>
</div>
</div>

View File

@ -224,7 +224,6 @@ export class MyCommunitiesComponent {
private handleError(message: string, error): number {
var code = "";
if (!error.status) {
var error = error.json();
code = error.code;
} else {
code = error.status;