Skip to content

Commit

Permalink
Rename disabledUpload option
Browse files Browse the repository at this point in the history
  • Loading branch information
A---- committed Sep 13, 2017
1 parent 112e67c commit dcf8219
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/asset_manager/view/FileUploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = Backbone.View.extend({
this.ppfx = c.pStylePrefix || '';
this.target = this.options.globalCollection || {};
this.uploadId = this.pfx + 'uploadFile';
this.disabled = c.disabled !== undefined ? c.disabled : !c.upload && !c.embedAsBase64;
this.disabled = c.disableUpload !== undefined ? c.disableUpload : !c.upload && !c.embedAsBase64;
this.events['change #' + this.uploadId] = 'uploadFile';
let uploadFile = c.uploadFile;

Expand Down
2 changes: 1 addition & 1 deletion test/specs/asset_manager/view/FileUploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = {

it('Could be disabled', () => {
var view = new FileUploader({ config : {
disabled: true,
disableUpload: true,
upload: 'something'
} });
view.render();
Expand Down

0 comments on commit dcf8219

Please sign in to comment.