Skip to content

Commit

Permalink
enhance: display username at app title #305
Browse files Browse the repository at this point in the history
  • Loading branch information
hackjutsu committed Aug 16, 2018
1 parent 55ab579 commit b199fb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/containers/userPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ class UserPanel extends Component {
image: null
})
removeAccessToken()
remote.getCurrentWindow().setTitle('Lepton') // update the app title
}

renderProfile () {
Expand Down
2 changes: 2 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ function initUserSession (token) {
syncLocalPref(newProfile.login)
logger.debug('-----> after syncLocalPref')

remote.getCurrentWindow().setTitle(`${ newProfile.login } | Lepton`) // update the app title

logger.info('[Dispatch] updateUserSession ACTIVE')
reduxStore.dispatch(updateUserSession({ activeStatus: 'ACTIVE', profile: newProfile }))
})
Expand Down

0 comments on commit b199fb6

Please sign in to comment.