Skip to content

Commit

Permalink
fix title bar on login page (#244)
Browse files Browse the repository at this point in the history
Signed-off-by: David Huffman <[email protected]>
  • Loading branch information
dshuffma-ibm authored Jul 5, 2022
1 parent 7ea34b9 commit f519838
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/apollo/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<!-- LeftNav.js changes the title -->
<!-- LeftNav.js & Login.js change the title -->
<title>Fabric Operations Console</title>
<script type="text/javascript" src="/stitch-dependencies.min.js"></script>
<script type="text/javascript" src="/stitch-main-min.js"></script>
Expand Down
3 changes: 3 additions & 0 deletions packages/apollo/src/components/Login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export class Login extends Component {
newPasswordError: '',
confirmPasswordError: '',
});

// change <title> of the browser tab
document.title = this.props.translate('product_label');
}

componentWillUnmount() { }
Expand Down

0 comments on commit f519838

Please sign in to comment.