Browse Source

Upload Component Image view

pull/758/head
Artur Arseniev 8 years ago
parent
commit
d6500380e6
  1. 7
      src/dom_components/view/ComponentImageView.js

7
src/dom_components/view/ComponentImageView.js

@ -18,10 +18,13 @@ module.exports = ComponentView.extend({
const config = this.config;
config.modal && (this.modal = config.modal);
config.am && (this.am = config.am);
this.uploadFile();
this.fetchFile();
},
uploadFile() {
/**
* Fetch file if exists
*/
fetchFile() {
const model = this.model;
const file = model.get('file');

Loading…
Cancel
Save