Ghost/ghost/admin/app/components/gh-image-uploader-with-preview.js

37 lines
734 B
JavaScript
Raw Normal View History

import Component from '@ember/component';
export default Component.extend({
allowUnsplash: false,
actions: {
update() {
let action = this.update;
if (action) {
action(...arguments);
}
},
uploadStarted() {
let action = this.uploadStarted;
if (action) {
action(...arguments);
}
},
uploadFinished() {
let action = this.uploadFinished;
if (action) {
action(...arguments);
}
},
2016-09-24 18:48:06 +03:00
remove() {
let action = this.remove;
if (action) {
action();
}
}
}
});