|
|
@@ -1,7 +1,6 @@
|
|
|
/* eslint-disable react/no-danger */
|
|
|
import React from 'react';
|
|
|
import PropTypes from 'prop-types';
|
|
|
-import loggerFactory from '@alias/logger';
|
|
|
import { withTranslation } from 'react-i18next';
|
|
|
|
|
|
import { createSubscribedElement } from '../../UnstatedUtils';
|
|
|
@@ -10,8 +9,6 @@ import { toastSuccess, toastError } from '../../../util/apiNotification';
|
|
|
import AppContainer from '../../../services/AppContainer';
|
|
|
import AdminGeneralSecurityContainer from '../../../services/AdminGeneralSecurityContainer';
|
|
|
|
|
|
-const logger = loggerFactory('growi:SecuritySetting');
|
|
|
-
|
|
|
class SecuritySetting extends React.Component {
|
|
|
|
|
|
constructor(props) {
|
|
|
@@ -24,11 +21,10 @@ class SecuritySetting extends React.Component {
|
|
|
const { t } = this.props;
|
|
|
try {
|
|
|
await this.props.adminGeneralSecurityContainer.updateGeneralSecuritySetting();
|
|
|
- toastSuccess(t('markdown_setting.updated_general_security_setting'));
|
|
|
+ toastSuccess(t('security_setting.updated_general_security_setting'));
|
|
|
}
|
|
|
catch (err) {
|
|
|
toastError(err);
|
|
|
- logger.err(err);
|
|
|
}
|
|
|
}
|
|
|
|