mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
Remove conf values
This commit is contained in:
@ -18,8 +18,6 @@ import {SearchOutlined} from "@ant-design/icons";
|
||||
import Highlighter from "react-highlight-words";
|
||||
import i18next from "i18next";
|
||||
import * as Setting from "./Setting";
|
||||
import * as Conf from "./Conf";
|
||||
import {DefaultOrganization} from "./Conf";
|
||||
|
||||
class BaseListPage extends React.Component {
|
||||
constructor(props) {
|
||||
@ -44,14 +42,14 @@ class BaseListPage extends React.Component {
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
window.addEventListener(Conf.StorageOrganizationChangedEvent, this.handleOrganizationChange);
|
||||
window.addEventListener("storageOrganizationChanged", this.handleOrganizationChange);
|
||||
if (!Setting.isAdminUser(this.props.account)) {
|
||||
Setting.setOrganization(DefaultOrganization);
|
||||
Setting.setOrganization("All");
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
window.removeEventListener(Conf.StorageOrganizationChangedEvent, this.handleOrganizationChange);
|
||||
window.removeEventListener("storageOrganizationChanged", this.handleOrganizationChange);
|
||||
}
|
||||
|
||||
UNSAFE_componentWillMount() {
|
||||
|
Reference in New Issue
Block a user