You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-02 21:22:41 +03:00
Handle icons and skip decryption checks during export
This commit is contained in:
@@ -104,6 +104,7 @@ export default class MFileBody extends React.Component {
|
||||
showGenericPlaceholder: PropTypes.bool,
|
||||
/* to set source to local file path during export */
|
||||
mediaSrc: PropTypes.string,
|
||||
isExporting: PropTypes.bool,
|
||||
};
|
||||
|
||||
static defaultProps = {
|
||||
@@ -174,7 +175,9 @@ export default class MFileBody extends React.Component {
|
||||
if (this.props.showGenericPlaceholder) {
|
||||
placeholder = (
|
||||
<div className="mx_MFileBody_info">
|
||||
<span className="mx_MFileBody_info_icon" />
|
||||
<span className="mx_MFileBody_info_icon" >
|
||||
{this.props.isExporting ? <img class="mx_export_attach_icon" src="icons/attach.svg" /> : null}
|
||||
</span>
|
||||
<span className="mx_MFileBody_info_filename">{this.presentableTextForFile(content, false)}</span>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user