|
@@ -1,14 +1,18 @@
|
|
|
import React from 'react';
|
|
import React from 'react';
|
|
|
import PropTypes from 'prop-types';
|
|
import PropTypes from 'prop-types';
|
|
|
import { withTranslation } from 'react-i18next';
|
|
import { withTranslation } from 'react-i18next';
|
|
|
|
|
+import loggerFactory from '@alias/logger';
|
|
|
|
|
|
|
|
import { createSubscribedElement } from '../../UnstatedUtils';
|
|
import { createSubscribedElement } from '../../UnstatedUtils';
|
|
|
|
|
+import { toastSuccess, toastError } from '../../../util/apiNotification';
|
|
|
|
|
|
|
|
import AppContainer from '../../../services/AppContainer';
|
|
import AppContainer from '../../../services/AppContainer';
|
|
|
import MarkDownSettingContainer from '../../../services/MarkDownSettingContainer';
|
|
import MarkDownSettingContainer from '../../../services/MarkDownSettingContainer';
|
|
|
|
|
|
|
|
import WhiteListInput from './WhiteListInput';
|
|
import WhiteListInput from './WhiteListInput';
|
|
|
|
|
|
|
|
|
|
+const logger = loggerFactory('growi:importer');
|
|
|
|
|
+
|
|
|
class XssForm extends React.Component {
|
|
class XssForm extends React.Component {
|
|
|
|
|
|
|
|
constructor(props) {
|
|
constructor(props) {
|
|
@@ -18,7 +22,13 @@ class XssForm extends React.Component {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async onClickSubmit() {
|
|
async onClickSubmit() {
|
|
|
- // TODO GW-303 create apiV3 of update setting
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ toastSuccess('Success update Xss setting');
|
|
|
|
|
+ }
|
|
|
|
|
+ catch (err) {
|
|
|
|
|
+ toastError(err);
|
|
|
|
|
+ logger.error(err);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
xssOptions() {
|
|
xssOptions() {
|