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

sysadmin reconstruct groups page (#4036)

* sysadmin reconstruct groups page

* [system admin] groups: fixup & improvement

* [system admin] groups: fixup & improvement
This commit is contained in:
Leo
2019-10-15 13:41:41 +08:00
committed by Daniel Pan
parent 140e26ff22
commit 6df11d6402
12 changed files with 1290 additions and 3 deletions

View File

@@ -16,6 +16,10 @@ import SystemRepo from './repos/system-repo';
import TrashRepos from './repos/trash-repos';
import DirView from './repos/dir-view';
import Groups from './groups/groups';
import GroupRepos from './groups/group-repos';
import GroupMembers from './groups/group-members';
import WebSettings from './web-settings/web-settings';
import Notifications from './notifications/notifications';
import FileScanRecords from './file-scan-records';
@@ -49,6 +53,10 @@ class SysAdmin extends React.Component {
tab: 'libraries',
urlPartList: ['all-libraries', 'system-library', 'trash-libraries', 'libraries/']
},
{
tab: 'groups',
urlPartList: ['groups/']
},
];
const tmpTab = this.getCurrentTabForPageList(pageList);
currentTab = tmpTab ? tmpTab : currentTab;
@@ -101,6 +109,9 @@ class SysAdmin extends React.Component {
<DirView path={siteRoot + 'sys/libraries/:repoID/*'} />
<WebSettings path={siteRoot + 'sys/web-settings'} />
<Notifications path={siteRoot + 'sys/notifications'} />
<Groups path={siteRoot + 'sys/groups'} />
<GroupRepos path={siteRoot + 'sys/groups/:groupID/libraries'} />
<GroupMembers path={siteRoot + 'sys/groups/:groupID/members'} />
<FileScanRecords
path={siteRoot + 'sys/file-scan-records'}
currentTab={currentTab}