FIX: upload emojis sequentially to prevent rate limit

This commit is contained in:
Régis Hanol 2019-02-13 22:07:37 +01:00
parent 4d674acc25
commit 94fe0af900
1 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,12 @@ export default Ember.Component.extend(UploadMixin, {
hasName: Ember.computed.notEmpty("name"),
addDisabled: Ember.computed.not("hasName"),
uploadOptions() {
return {
sequentialUploads: true,
};
},
@computed("hasName", "name")
data(hasName, name) {
return hasName ? { name } : {};