1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

Add fileStorage config to frontend

closes #2956

- adds fileStorage to config passed to ember, and then grabs it in the relevant places.
This commit is contained in:
Hannah Wolfe 2014-06-23 22:12:22 +01:00
parent d6f84dadf2
commit 89be3215af
3 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@ var Markdown = Ember.Component.extend({
uploader.call(dropzones, {
editor: true,
filestorage: false
fileStorage: this.get('config.fileStorage')
});
dropzones.on('uploadstart', _.bind(this.sendAction, this, 'uploadStarted'));

View file

@ -6,8 +6,7 @@ var UploadModal = ModalDialog.extend({
didInsertElement: function () {
this._super();
var filestorage = $('#general').data('filestorage');
upload.call(this.$('.js-drop-zone'), {fileStorage: filestorage});
upload.call(this.$('.js-drop-zone'), {fileStorage: this.get('config.fileStorage')});
},
confirm: {
reject: {

View file

@ -6,6 +6,7 @@ var ConfigInitializer = {
application.inject('route', 'config', 'ghost:config');
application.inject('controller', 'config', 'ghost:config');
application.inject('component', 'config', 'ghost:config');
}
};