Skip to content

Commit

Permalink
Sets site title according to primary repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanprior committed Sep 24, 2017
1 parent ddebd73 commit 69165f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/dist/
/selenium-screenshot.png
npm-debug.log
*~
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Kanban Board</title>
<link rel="stylesheet" href="./dist/app.css"/>
<link rel="shortcut icon" type="image/png" href="./favicon32.png">
</head>
Expand Down
5 changes: 5 additions & 0 deletions src/components/repo-kanban.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ const KanbanColumn = React.createClass({
});

const KanbanRepo = React.createClass({
componentDidMount() {
const repoTitle = titlecaps(this.props.repoInfos[0].repoName);
document.title = `${repoTitle} Kanban Board`;
},

render() {
const {columnData, cards, repoInfos} = this.props;

Expand Down

0 comments on commit 69165f5

Please sign in to comment.