mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:41:46 +08:00
Remove conf values
This commit is contained in:
@ -427,7 +427,7 @@ class OrganizationEditPage extends React.Component {
|
||||
this.setState({
|
||||
organizationName: this.state.organization.name,
|
||||
});
|
||||
window.dispatchEvent(new Event(Conf.StorageOrganizationsChangedEvent));
|
||||
window.dispatchEvent(new Event("storageOrganizationsChanged"));
|
||||
|
||||
if (willExist) {
|
||||
this.props.history.push("/organizations");
|
||||
@ -449,7 +449,7 @@ class OrganizationEditPage extends React.Component {
|
||||
.then((res) => {
|
||||
if (res.status === "ok") {
|
||||
this.props.history.push("/organizations");
|
||||
window.dispatchEvent(new Event(Conf.StorageOrganizationsChangedEvent));
|
||||
window.dispatchEvent(new Event("storageOrganizationsChanged"));
|
||||
} else {
|
||||
Setting.showMessage("error", `${i18next.t("general:Failed to delete")}: ${res.msg}`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user