2016-06-30 21:14:25 +03:00
|
|
|
import Component from 'ember-component';
|
2016-09-24 18:48:06 +03:00
|
|
|
import {invokeAction} from 'ember-invoke-action';
|
2016-02-26 16:25:47 +03:00
|
|
|
|
|
|
|
export default Component.extend({
|
|
|
|
actions: {
|
|
|
|
update() {
|
|
|
|
if (typeof this.attrs.update === 'function') {
|
|
|
|
this.attrs.update(...arguments);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
uploadStarted() {
|
|
|
|
if (typeof this.attrs.uploadStarted === 'function') {
|
|
|
|
this.attrs.uploadStarted(...arguments);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
uploadFinished() {
|
|
|
|
if (typeof this.attrs.uploadFinished === 'function') {
|
|
|
|
this.attrs.uploadFinished(...arguments);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2016-09-24 18:48:06 +03:00
|
|
|
remove() {
|
|
|
|
invokeAction(this, 'remove');
|
2016-02-26 16:25:47 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|