Skip to content

Commit

Permalink
[feat]: update title
Browse files Browse the repository at this point in the history
  • Loading branch information
pizn committed Feb 4, 2016
1 parent 8571e76 commit 2a9ef18
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (process.env.NODE_ENV === "production") {

exports.index = function *() {
this.body = yield this.render("basic", {
title: "Hello Leaf!",
title: "Eevee",
STYLE_URL: STYLE_URL,
SCRIPT_URL: SCRIPT_URL_APP,
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/Post/Meta.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class MetaForm extends Component {
return (
<Modal ref="modal"
visible={modalVisible}
title="Edit"
title="Edit post meta"
onOk={modalHandleOk}
onCancel={modalHandleCancel}
footer={[
Expand Down
1 change: 1 addition & 0 deletions src/containers/Desktop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Desktop extends Component {

componentDidMount() {
const { dispatch, user, repoInfo } = this.props;
document.title = 'Desktop | Eevee';
if (!user.loaded) {
dispatch(actions.updateUserInfo())
.then(() => {
Expand Down
1 change: 1 addition & 0 deletions src/containers/Dir.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Dir extends Component {
}

componentDidMount() {
document.title = 'Directory | Eevee';
this.getData();
}

Expand Down
4 changes: 4 additions & 0 deletions src/containers/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ class Login extends Component {
};
}

componentDidMount() {
document.title = 'Connect | Eevee';
}

handleSubmit(data) {
const { dispatch, history } = this.props;
const that = this;
Expand Down
2 changes: 2 additions & 0 deletions src/containers/Post.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class Post extends Component {
componentDidMount() {
const { params, dispatch, user, repoInfo } = this.props;

document.title = 'Edit post | Eevee';

const that = this;
if (!user.loaded) {
dispatch(actions.updateUserInfo())
Expand Down

0 comments on commit 2a9ef18

Please sign in to comment.