FIX: reset message field of flag form after submitting flag

This commit is contained in:
Neil Lalonde 2015-05-07 17:08:07 -04:00
parent 875a013ec7
commit ffeab82947
1 changed files with 3 additions and 0 deletions

View File

@ -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) {