Minor cleanups

no issue
- replace unnecessary destructuring with direct import
- remove unused action
This commit is contained in:
Kevin Ansfield 2018-10-22 20:59:43 +01:00
parent 7fa889be90
commit d58363513c
2 changed files with 1 additions and 8 deletions

View File

@ -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(),

View File

@ -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