DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808)

Co-Authored-By: Bianca Nenciu <nbianca@users.noreply.github.com>
Co-Authored-By: David Taylor <david@taylorhq.com>
This commit is contained in:
Joffrey JAFFEUX
2019-01-10 11:06:01 +01:00
committed by GitHub
parent 7896c74c2b
commit f9648de897
318 changed files with 1684 additions and 1462 deletions

View File

@ -8,8 +8,8 @@ import { bufferedRender } from "discourse-common/lib/buffered-render";
{{resumable-upload
target="/admin/backups/upload"
success="successAction"
error="errorAction"
success=(action "successAction")
error=(action "errorAction")
uploadText="UPLOAD"
}}
**/
@ -100,7 +100,7 @@ export default Ember.Component.extend(
// mark as not uploading anymore
self._reset();
// fire an event to allow the parent route to reload its model
self.sendAction("success", file.fileName);
self.success(file.fileName);
});
});
@ -109,7 +109,7 @@ export default Ember.Component.extend(
// mark as not uploading anymore
self._reset();
// fire an event to allow the parent route to display the error message
self.sendAction("error", file.fileName, message);
self.error(file.fileName, message);
});
});
}.on("init"),