Minor cleanups
no issue - replace unnecessary destructuring with direct import - remove unused action
This commit is contained in:
parent
7fa889be90
commit
d58363513c
|
@ -3,11 +3,9 @@ import {
|
|||
IMAGE_EXTENSIONS,
|
||||
IMAGE_MIME_TYPES
|
||||
} from 'ghost-admin/components/gh-image-uploader';
|
||||
import {run} from '@ember/runloop';
|
||||
import {debounce, run} from '@ember/runloop';
|
||||
import {inject as service} from '@ember/service';
|
||||
|
||||
const {debounce} = run;
|
||||
|
||||
export default Component.extend({
|
||||
ui: service(),
|
||||
|
||||
|
|
|
@ -56,11 +56,6 @@ export default Controller.extend({
|
|||
this.get('settings').set(image, '');
|
||||
},
|
||||
|
||||
updateImage(property, image, resetInput) {
|
||||
this.get('settings').set(property, image);
|
||||
resetInput();
|
||||
},
|
||||
|
||||
/**
|
||||
* Opens a file selection dialog - Triggered by "Upload Image" buttons,
|
||||
* searches for the hidden file input within the .gh-setting element
|
||||
|
|
Loading…
Reference in New Issue