| | |
| | | |
| | | trigger = () => { |
| | | const { config } = this.props |
| | | const _this = this |
| | | const that = this |
| | | |
| | | if (!config.enabled) { |
| | | notification.warning({ |
| | |
| | | content: '', |
| | | onOk() { |
| | | return new Promise(resolve => { |
| | | _this.execUpdate(resolve) |
| | | that.execUpdate(resolve) |
| | | }) |
| | | }, |
| | | onCancel() {} |
| | |
| | | |
| | | saveConfig = (_resolve, _config, errors) => { |
| | | let err = errors.join(';') |
| | | let _this = this |
| | | let that = this |
| | | |
| | | if (err) { |
| | | _resolve() |
| | |
| | | content: '', |
| | | onOk() { |
| | | return new Promise(resolve => { |
| | | _this.saveNewMenu(resolve, _config) |
| | | that.saveNewMenu(resolve, _config) |
| | | }) |
| | | }, |
| | | onCancel() {} |