mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
40 lines
947 B
JavaScript
40 lines
947 B
JavaScript
|
import Ember from 'ember';
|
||
|
|
||
|
const {
|
||
|
Component
|
||
|
} = Ember;
|
||
|
|
||
|
export default Component.extend({
|
||
|
actions: {
|
||
|
update() {
|
||
|
if (typeof this.attrs.update === 'function') {
|
||
|
this.attrs.update(...arguments);
|
||
|
}
|
||
|
},
|
||
|
|
||
|
onInput() {
|
||
|
if (typeof this.attrs.onInput === 'function') {
|
||
|
this.attrs.onInput(...arguments);
|
||
|
}
|
||
|
},
|
||
|
|
||
|
uploadStarted() {
|
||
|
if (typeof this.attrs.uploadStarted === 'function') {
|
||
|
this.attrs.uploadStarted(...arguments);
|
||
|
}
|
||
|
},
|
||
|
|
||
|
uploadFinished() {
|
||
|
if (typeof this.attrs.uploadFinished === 'function') {
|
||
|
this.attrs.uploadFinished(...arguments);
|
||
|
}
|
||
|
},
|
||
|
|
||
|
formChanged() {
|
||
|
if (typeof this.attrs.formChanged === 'function') {
|
||
|
this.attrs.formChanged(...arguments);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|