mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Fixed uploading of images for staff users
This commit is contained in:
parent
51fd4ffedb
commit
62009832fe
@ -30,7 +30,7 @@ export default Component.extend({
|
||||
text: '',
|
||||
altText: '',
|
||||
saveButton: true,
|
||||
accept: null,
|
||||
accept: '',
|
||||
extensions: null,
|
||||
uploadUrl: null,
|
||||
validate: null,
|
||||
@ -85,9 +85,8 @@ export default Component.extend({
|
||||
return htmlSafe(`width: ${width}`);
|
||||
}),
|
||||
|
||||
didReceiveAttrs() {
|
||||
let image = this.get('image');
|
||||
this.set('url', image);
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
|
||||
if (!this.get('accept')) {
|
||||
this.set('accept', this.get('_defaultAccept'));
|
||||
@ -100,6 +99,11 @@ export default Component.extend({
|
||||
}
|
||||
},
|
||||
|
||||
didReceiveAttrs() {
|
||||
let image = this.get('image');
|
||||
this.set('url', image);
|
||||
},
|
||||
|
||||
actions: {
|
||||
fileSelected(fileList, resetInput) {
|
||||
// can't use array destructuring here as FileList is not a strict
|
||||
|
Loading…
Reference in New Issue
Block a user