Skip to content

Commit 25a37cd

Browse files
committed
Fix remove failed upload item.
1 parent 1c81883 commit 25a37cd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

client/app/components/image-item.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ export default Ember.Component.extend({
33
classNameBindings: 'image.currentState',
44
attributeBindings: 'style',
55

6+
actions: {
7+
removeItem: function(item) {
8+
this.sendAction('removeItem', item);
9+
}
10+
},
11+
612
style: function() {
713
var url = this.get('image.normalUrl');
814

client/app/templates/images.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
<ul class="images-list">
44
{{#each image in newest}}
5-
{{image-item tagName="li" image=image error=error}}
5+
{{image-item tagName="li" image=image error=error removeItem="removeItem"}}
66
{{/each}}
77
</ul>

0 commit comments

Comments
 (0)