mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-31 09:09:53 -04:00
FIX: reset message field of flag form after submitting flag
This commit is contained in:
parent
875a013ec7
commit
ffeab82947
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue