[Задача 12799] Добавил всплывающее сообщение при обновлении опечаток

parent 7cc5c747
...@@ -4,8 +4,9 @@ import TypoList from "./TypoList/"; ...@@ -4,8 +4,9 @@ import TypoList from "./TypoList/";
import FaRefresh from 'react-icons/lib/fa/refresh'; import FaRefresh from 'react-icons/lib/fa/refresh';
import TopBarProgress from 'react-topbar-progress-indicator'; import TopBarProgress from 'react-topbar-progress-indicator';
export default class SiteList extends React.Component { const alertify = require("alertify.js");
export default class SiteList extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
...@@ -43,11 +44,14 @@ export default class SiteList extends React.Component { ...@@ -43,11 +44,14 @@ export default class SiteList extends React.Component {
tab = tab === undefined ? this.state.activeTab : tab; tab = tab === undefined ? this.state.activeTab : tab;
this.loadSiteTypos(tab, () => this.loadSiteTypos(tab, () => {
this.setState({ alertify.success("Опечатки обновлены");
refreshing: false,
activeTab: tab this.setState({
}) refreshing: false,
activeTab: tab
});
}
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment