mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
ea58dc6f85
refs https://github.com/TryGhost/Ghost/issues/8032 - `fileStorage: false` config is going away, it predates storage engines and will simplify future image optimisation work - simplifies UI, it can be brought back in the future in a more robust fashion if required
29 lines
726 B
JavaScript
29 lines
726 B
JavaScript
import Component from 'ember-component';
|
|
import {invokeAction} from 'ember-invoke-action';
|
|
|
|
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);
|
|
}
|
|
},
|
|
|
|
remove() {
|
|
invokeAction(this, 'remove');
|
|
}
|
|
}
|
|
});
|