[develop | DONE | FIXED ] community status checks
This commit is contained in:
parent
1003382304
commit
f2e2edd1f2
|
@ -83,7 +83,7 @@ type Tab = 'all' | 'communities' | 'ris';
|
||||||
<div class="uk-card uk-card-default uk-card-body uk-position-relative">
|
<div class="uk-card uk-card-default uk-card-body uk-position-relative">
|
||||||
<div class="uk-position-top-right uk-margin-small-right uk-margin-small-top">
|
<div class="uk-position-top-right uk-margin-small-right uk-margin-small-top">
|
||||||
<div class="uk-flex uk-flex-middle">
|
<div class="uk-flex uk-flex-middle">
|
||||||
<icon [flex]="true" [name]="community.status == 'all'?'earth':(community.status == 'manager'?'restricted':'incognito')" ratio="0.6"></icon>
|
<icon [flex]="true" [name]="community.isPublic()?'earth':(community.isRestricted()?'restricted':'incognito')" ratio="0.6"></icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a class="uk-display-block uk-text-center uk-link-reset" [routerLink]="community.communityId">
|
<a class="uk-display-block uk-text-center uk-link-reset" [routerLink]="community.communityId">
|
||||||
|
|
|
@ -42,7 +42,7 @@ export class UsersManagersComponent implements OnInit {
|
||||||
this.link = this.getURL(this.community.communityId);
|
this.link = this.getURL(this.community.communityId);
|
||||||
this.message = 'A manager has the right to access the administration part of Research Community Dashboard, ' +
|
this.message = 'A manager has the right to access the administration part of Research Community Dashboard, ' +
|
||||||
'where he is able to customize and manage the content, invite other users as managers or members.';
|
'where he is able to customize and manage the content, invite other users as managers or members.';
|
||||||
if(community.status === "hidden") {
|
if(community.isPrivate()) {
|
||||||
this.inviteDisableMessage = "Community's status is Hidden and invitation to manage the Research community dashboard is disabled. Update the community status to enable invitations."
|
this.inviteDisableMessage = "Community's status is Hidden and invitation to manage the Research community dashboard is disabled. Update the community status to enable invitations."
|
||||||
}
|
}
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
|
|
@ -46,8 +46,8 @@ export class UsersSubscribersComponent implements OnInit {
|
||||||
this.link = this.getURL(this.community.communityId);
|
this.link = this.getURL(this.community.communityId);
|
||||||
this.message = 'A member can access the community dashboard and link research results with projects, ' +
|
this.message = 'A member can access the community dashboard and link research results with projects, ' +
|
||||||
'communities and other research projects.';
|
'communities and other research projects.';
|
||||||
if(community.status !== "all") {
|
if(!community.isPublic()) {
|
||||||
this.inviteDisableMessage = "Community's status is " + (community.status === 'manager'?'Visible to managers':'Hidden') + " and invitation to join the Research community dashboard is disabled. Update the community status to enable invitations."
|
this.inviteDisableMessage = "Community's status is " + (community.isRestricted()?'Visible to managers':'Hidden') + " and invitation to join the Research community dashboard is disabled. Update the community status to enable invitations."
|
||||||
}
|
}
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue