Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Use original_path for header if present in metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Apr 7, 2016
1 parent 1c7e947 commit 7ed8c22
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/src/plugins/action.share/res/react/ShareDialog.js
Expand Up @@ -187,11 +187,16 @@
var HeaderPanel = React.createClass({
mixins:[ContextConsumerMixin],
render: function(){

let nodePath = this.props.shareModel.getNode().getPath();
if(this.props.shareModel.getNode().getMetadata().get("original_path")){
nodePath = this.props.shareModel.getNode().getMetadata().get("original_path");
}
return (
<div className="headerPanel">
<div
style={{fontSize: 24, color:'white', padding:'20px 16px 14px', wordBreak:'break-all'}}
>{this.context.getMessage('44').replace('%s', PathUtils.getBasename(this.props.shareModel.getNode().getPath()))}</div>
>{this.context.getMessage('44').replace('%s', PathUtils.getBasename(nodePath))}</div>
</div>
);
}
Expand Down

0 comments on commit 7ed8c22

Please sign in to comment.