mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 19:45:51 +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
|
- Subversion revision 0 leads to error
|
||||||
- Create mock subject to satisfy legman
|
- Create mock subject to satisfy legman
|
||||||
- Multiple versions of hibernate-validator caused problems when starting from plugins
|
- Multiple versions of hibernate-validator caused problems when starting from plugins
|
||||||
|
- Page title is now set correctly
|
||||||
|
|
||||||
## 2.0.0-rc1 - 2019-12-02
|
## 2.0.0-rc1 - 2019-12-02
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -28,6 +28,13 @@ const PageActionContainer = styled.div`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
export default class Page extends React.Component<Props> {
|
export default class Page extends React.Component<Props> {
|
||||||
|
componentDidUpdate() {
|
||||||
|
const { title } = this.props;
|
||||||
|
if (document.title !== title) {
|
||||||
|
document.title = title;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { error } = this.props;
|
const { error } = this.props;
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user