1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00
This commit is contained in:
zMingGit
2017-09-18 14:21:11 +08:00
committed by zming
parent 7f7e5a3cb5
commit 12ba328119
17 changed files with 601 additions and 5 deletions

View File

@@ -20,13 +20,14 @@ define([
'sysadmin-app/views/group-members',
'sysadmin-app/views/admin-operation-logs',
'sysadmin-app/views/admin-login-logs',
'sysadmin-app/views/device-trusted-ipaddresses',
'app/views/account'
], function($, Backbone, Common, SideNavView, DashboardView,
DesktopDevicesView, MobileDevicesView, DeviceErrorsView,
ReposView, SearchReposView, SystemReposView, TrashReposView,
SearchTrashReposView, DirView, GroupsView, SearchGroupsView,
GroupReposView, GroupMembersView, AdminOperationLogsview, AdminLoginLogsView,
AccountView) {
DeviceTrustedIPView, AccountView) {
"use strict";
@@ -37,6 +38,7 @@ define([
'desktop-devices/': 'showDesktopDevices',
'mobile-devices/': 'showMobileDevices',
'device-errors/': 'showDeviceErrors',
'device-trusted-ip/': 'showDeviceTrustedIP',
'all-libs/': 'showLibraries',
'search-libs/': 'showSearchLibraries',
'system-lib/': 'showSystemLibrary',
@@ -69,6 +71,7 @@ define([
this.desktopDevicesView = new DesktopDevicesView();
this.mobileDevicesView = new MobileDevicesView();
this.deviceErrorsView = new DeviceErrorsView();
this.deviceTrustedIPView = new DeviceTrustedIPView();
this.reposView = new ReposView();
this.searchReposView = new SearchReposView();
@@ -156,6 +159,12 @@ define([
this.deviceErrorsView.show();
},
showDeviceTrustedIP: function() {
this.switchCurrentView(this.deviceTrustedIPView);
this.sideNavView.setCurTab('devices');
this.deviceTrustedIPView.show();
},
showLibraries: function() {
if (!app.pageOptions.admin_permissions.can_manage_library) {
this.showDashboard();