mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-6268 Clear blue bar correctly when removing expiring license (#6247)
* Don't sanitize license for system admin * Clear blue bar error whe removing expiring license * Fix unit test
This commit is contained in:
committed by
Corey Hulen
parent
9a87bb3af6
commit
5a60ea0d75
@@ -5,6 +5,7 @@ import $ from 'jquery';
|
||||
import ReactDOM from 'react-dom';
|
||||
import * as Utils from 'utils/utils.jsx';
|
||||
|
||||
import ErrorStore from 'stores/error_store.jsx';
|
||||
import {uploadLicenseFile, removeLicenseFile} from 'actions/admin_actions.jsx';
|
||||
|
||||
import {injectIntl, intlShape, defineMessages, FormattedMessage, FormattedHTMLMessage} from 'react-intl';
|
||||
@@ -80,6 +81,7 @@ class LicenseSettings extends React.Component {
|
||||
() => {
|
||||
$('#remove-button').button('reset');
|
||||
this.setState({fileSelected: false, fileName: null, serverError: null});
|
||||
ErrorStore.clearLastError(true);
|
||||
window.location.reload(true);
|
||||
},
|
||||
(error) => {
|
||||
|
||||
Reference in New Issue
Block a user