add fields claim and membership
This commit is contained in:
parent
c8c5e2d925
commit
ff49c02a52
|
@ -99,6 +99,8 @@ export class CommunityService {
|
||||||
community.date = resData.creationDate;
|
community.date = resData.creationDate;
|
||||||
community.zenodoCommunity = resData.zenodoCommunity;
|
community.zenodoCommunity = resData.zenodoCommunity;
|
||||||
community.status = 'PUBLIC';
|
community.status = 'PUBLIC';
|
||||||
|
community.claim = resData.claim;
|
||||||
|
community.membership = resData.membership;
|
||||||
community.type = resData.type;
|
community.type = resData.type;
|
||||||
community.otherZenodoCommunities = resData.otherZenodoCommunities;
|
community.otherZenodoCommunities = resData.otherZenodoCommunities;
|
||||||
if (resData.hasOwnProperty('status')) {
|
if (resData.hasOwnProperty('status')) {
|
||||||
|
|
|
@ -15,6 +15,8 @@ export class CommunityInfo {
|
||||||
date:Date;
|
date:Date;
|
||||||
subjects: string[];
|
subjects: string[];
|
||||||
status:"all" | "manager" | "hidden" | "PUBLIC" | "RESTRICTED" | "PRIVATE";
|
status:"all" | "manager" | "hidden" | "PUBLIC" | "RESTRICTED" | "PRIVATE";
|
||||||
|
claim: "all" | "managersOnly" | "membersOnly";
|
||||||
|
membership: "open" | "byInvitation";
|
||||||
zenodoCommunity:string;
|
zenodoCommunity:string;
|
||||||
otherZenodoCommunities: string[];
|
otherZenodoCommunities: string[];
|
||||||
isUpload: boolean;
|
isUpload: boolean;
|
||||||
|
|
Loading…
Reference in New Issue