Max Red - problems with displaying stats in admin-panel-my-account view, Ivan fixed it [skip ci]

This commit is contained in:
ivan 2017-01-17 15:26:18 -03:00
parent 4fb1c32cbc
commit fda6e798a0
3 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@ class AdminPanelStats extends React.Component {
render() {
return (
<div class="admin-panel-stats">
<Header title={i18n('TICKET_ACTIVITY')}/>
<Header title={i18n('TICKET_ACTIVITY')} description={i18n('TICKET_ACTIVITY_DESCRIPTION')}/>
<Stats type="general"/>
</div>
);

View File

@ -222,6 +222,7 @@ export default {
'SYSTEM_PREFERENCES_DESCRIPTION': 'Here you can edit the preferences of the system.',
'VERIFY_SUCCESS_DESCRIPTION': 'You user has been verified correctly. You can log in now.',
'VERIFY_FAILED_DESCRIPTION': 'The verification could not be done.',
'TICKET_ACTIVITY_DESCRIPTION': 'Here you can view ',
//ERRORS
'EMAIL_OR_PASSWORD': 'Email or password invalid',

View File

@ -119,6 +119,7 @@ class SessionReducer extends Reducer {
onSessionChecked(state) {
let userData = sessionStore.getUserData();
let userId = sessionStore.getSessionData().userId;
return _.extend({}, state, {
initDone: true,
@ -129,7 +130,8 @@ class SessionReducer extends Reducer {
userProfilePic: userData.profilePic,
userLevel: userData.level,
userDepartments: userData.departments,
userTickets: userData.tickets
userTickets: userData.tickets,
userId: userId
});
}