mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-10-26 08:06:09 +01:00
Page title is now set correctly
This commit is contained in:
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Subversion revision 0 leads to error
|
||||
- Create mock subject to satisfy legman
|
||||
- Multiple versions of hibernate-validator caused problems when starting from plugins
|
||||
- Page title is now set correctly
|
||||
|
||||
## 2.0.0-rc1 - 2019-12-02
|
||||
### Added
|
||||
|
||||
@@ -28,6 +28,13 @@ const PageActionContainer = styled.div`
|
||||
`;
|
||||
|
||||
export default class Page extends React.Component<Props> {
|
||||
componentDidUpdate() {
|
||||
const { title } = this.props;
|
||||
if (document.title !== title) {
|
||||
document.title = title;
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const { error } = this.props;
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user