|
@@ -276,17 +276,19 @@ export default class Editor extends AbstractEditor {
|
|
|
|
|
|
|
|
</Dropzone>
|
|
</Dropzone>
|
|
|
|
|
|
|
|
- <button type="button" className="btn btn-default btn-block btn-open-dropzone"
|
|
|
|
|
- onClick={() => {this.refs.dropzone.open()}}>
|
|
|
|
|
-
|
|
|
|
|
- <i className="icon-paper-clip" aria-hidden="true"></i>
|
|
|
|
|
- Attach files
|
|
|
|
|
- <span className="desc-long">
|
|
|
|
|
- by dragging & dropping,
|
|
|
|
|
- <span className="btn-link">selecting them</span>,
|
|
|
|
|
- or pasting from the clipboard.
|
|
|
|
|
- </span>
|
|
|
|
|
- </button>
|
|
|
|
|
|
|
+ { this.props.isUploadable &&
|
|
|
|
|
+ <button type="button" className="btn btn-default btn-block btn-open-dropzone"
|
|
|
|
|
+ onClick={() => {this.refs.dropzone.open()}}>
|
|
|
|
|
+
|
|
|
|
|
+ <i className="icon-paper-clip" aria-hidden="true"></i>
|
|
|
|
|
+ Attach files
|
|
|
|
|
+ <span className="desc-long">
|
|
|
|
|
+ by dragging & dropping,
|
|
|
|
|
+ <span className="btn-link">selecting them</span>,
|
|
|
|
|
+ or pasting from the clipboard.
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ }
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|