mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
Merge pull request #3747 from haiwen/7.0-show-used-quota-of-department
show quota in department group, after path icon
This commit is contained in:
@@ -9,6 +9,8 @@ class Group {
|
||||
this.parent_group_id = object.parent_group_id;
|
||||
this.wiki_enabled = object.wiki_enabled;
|
||||
this.repos = object.repos || [];
|
||||
this.group_quota = object.group_quota;
|
||||
this.group_quota_usage = object.group_quota_usage;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -388,7 +388,10 @@ class GroupView extends React.Component {
|
||||
<span className="path-split">/</span>
|
||||
<span>{currentGroup.name}</span>
|
||||
{currentGroup.parent_group_id !== 0 && (
|
||||
<span className="department-group-icon fas fa-building" title={gettext('This is a special group representing a department.')}></span>
|
||||
<Fragment>
|
||||
<span className="department-group-icon fas fa-building" title={gettext('This is a special group representing a department.')}></span>
|
||||
<span>{' '}{'('}{gettext('Used:')}{' '}{Utils.bytesToSize(currentGroup.group_quota_usage)}{'/'}{Utils.bytesToSize(currentGroup.group_quota)}{')'}</span>
|
||||
</Fragment>
|
||||
)}
|
||||
</div>
|
||||
<div className="path-tool">
|
||||
|
Reference in New Issue
Block a user