mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
FIX: reset message field of flag form after submitting flag
This commit is contained in:
parent
875a013ec7
commit
ffeab82947
@ -84,6 +84,9 @@ export default ObjectController.extend(ModalFunctionality, {
|
||||
|
||||
postAction.act(this.get('model'), params).then(function() {
|
||||
self.send('closeModal');
|
||||
if (params.message) {
|
||||
self.set('message', '');
|
||||
}
|
||||
}, function(errors) {
|
||||
self.send('closeModal');
|
||||
if (errors && errors.responseText) {
|
||||
|
Loading…
Reference in New Issue
Block a user