mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 08:28:11 +00:00
Org group (#3097)
* org groups * update front page * update operation ui
This commit is contained in:
18
frontend/src/models/org-group.js
Normal file
18
frontend/src/models/org-group.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Utils } from '../utils/utils';
|
||||
import { lang } from '../utils/constants';
|
||||
import moment from 'moment';
|
||||
|
||||
moment.locale(lang);
|
||||
|
||||
class OrgGroupInfo {
|
||||
constructor(object) {
|
||||
this.id = object.id;
|
||||
this.groupName = object.group_name;
|
||||
this.creatorName = object.creator_name;
|
||||
this.creatorEmail = object.creator_email;
|
||||
this.creatorContactEmail = object.creator_contact_email;
|
||||
this.ctime = moment(object.ctime).format('YYYY-MM-DD HH:mm:ss');
|
||||
}
|
||||
}
|
||||
|
||||
export default OrgGroupInfo;
|
Reference in New Issue
Block a user