Fix: Replacing custom gif image results in old gif appearing in admin… (#4199)

* Fix: Replacing custom gif image results in old gif appearing in admin page

* refactor as per the review comment
This commit is contained in:
shaktikatare1989 2016-04-26 20:53:21 +05:30 committed by Robin Ward
parent d59106cb15
commit 6c5548c2e4

View file

@ -3,7 +3,8 @@ export default Ember.ArrayController.extend({
actions: {
emojiUploaded(emoji) {
this.pushObject(Em.Object.create(emoji));
emoji.url += "?t=" + new Date().getTime();
this.pushObject(Ember.Object.create(emoji));
},
destroy(emoji) {