1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 12:58:34 +00:00

System admin api (#6967)

* [system admin] moved related APIs from seafile-js to system-admin-api.js; made related fixup & improvements, and etc.

* [system admin] use 'systemAdminAPI' instead of 'seafileAPI' for the pages

* [system admin] use 'systemAdminAPI' instead of 'seafileAPI' for the dialogs
This commit is contained in:
llj
2024-10-30 08:48:04 +08:00
committed by GitHub
parent 23ac76bc3f
commit 801b473b5d
78 changed files with 1363 additions and 306 deletions

View File

@@ -1,19 +1,10 @@
import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import {
Button,
Modal,
ModalHeader,
ModalBody,
ModalFooter,
Nav,
NavItem,
NavLink,
TabContent,
TabPane
} from 'reactstrap';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter,
Nav, NavItem, NavLink, TabContent, TabPane } from 'reactstrap';
import makeAnimated from 'react-select/animated';
import { seafileAPI } from '../../utils/seafile-api';
import { systemAdminAPI } from '../../utils/system-admin-api';
import { gettext, isPro, orgID } from '../../utils/constants';
import { Utils } from '../../utils/utils';
import toaster from '../toast';
@@ -82,7 +73,7 @@ class TransferDialog extends React.Component {
});
}
else if (this.props.isSysAdmin) {
seafileAPI.sysAdminListDepartments().then((res) => {
systemAdminAPI.sysAdminListDepartments().then((res) => {
for (let i = 0; i < res.data.length; i++) {
let obj = {};
obj.value = res.data[i].name;