1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 03:41:12 +00:00

Share manage optimized (#2723)

This commit is contained in:
杨顺强
2018-12-27 10:24:34 +08:00
committed by Daniel Pan
parent 89ccc6bd2a
commit d124677b40
10 changed files with 401 additions and 363 deletions

View File

@@ -0,0 +1,26 @@
class SharedRepoInfo {
constructor(object) {
this.repo_id = object.repo_id;
this.repo_name = object.repo_name;
this.share_type = object.share_type;
this.share_permission = object.share_permission;
this.modifier_name = object.modifier_name;
this.modifier_email = object.modifier_email;
this.modifier_contact_email = object.modifier_contact_email;
this.encrypted = object.encrypted;
if (this.share_type === 'personal') {
this.is_admin = object.is_admin;
this.user_name = object.user_name;
this.user_email = object.user_email;
this.contact_email = this.contact_email;
} else if(this.share_type === 'group') {
this.is_admin = object.is_admin;
this.group_id = object.group_id;
this.group_name = object.group_name;
}
}
}
export default SharedRepoInfo;