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