Set window title to filePage metadata title #408

Closed
akinwale wants to merge 1 commit from ui-filepage-title into master

View file

@ -36,6 +36,9 @@ class FilePage extends React.PureComponent {
componentDidMount() { componentDidMount() {
this.fetchFileInfo(this.props); this.fetchFileInfo(this.props);
this.fetchCostInfo(this.props); this.fetchCostInfo(this.props);
document.title = this.props.metadata
? this.props.metadata.title
: document.title;
} }
componentWillReceiveProps(nextProps) { componentWillReceiveProps(nextProps) {