Max Red - problems with displaying stats in admin-panel-my-account view, Ivan fixed it [skip ci]
This commit is contained in:
parent
4fb1c32cbc
commit
fda6e798a0
|
@ -9,7 +9,7 @@ class AdminPanelStats extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div class="admin-panel-stats">
|
<div class="admin-panel-stats">
|
||||||
<Header title={i18n('TICKET_ACTIVITY')}/>
|
<Header title={i18n('TICKET_ACTIVITY')} description={i18n('TICKET_ACTIVITY_DESCRIPTION')}/>
|
||||||
<Stats type="general"/>
|
<Stats type="general"/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -222,6 +222,7 @@ export default {
|
||||||
'SYSTEM_PREFERENCES_DESCRIPTION': 'Here you can edit the preferences of the system.',
|
'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_SUCCESS_DESCRIPTION': 'You user has been verified correctly. You can log in now.',
|
||||||
'VERIFY_FAILED_DESCRIPTION': 'The verification could not be done.',
|
'VERIFY_FAILED_DESCRIPTION': 'The verification could not be done.',
|
||||||
|
'TICKET_ACTIVITY_DESCRIPTION': 'Here you can view ',
|
||||||
|
|
||||||
//ERRORS
|
//ERRORS
|
||||||
'EMAIL_OR_PASSWORD': 'Email or password invalid',
|
'EMAIL_OR_PASSWORD': 'Email or password invalid',
|
||||||
|
|
|
@ -119,6 +119,7 @@ class SessionReducer extends Reducer {
|
||||||
|
|
||||||
onSessionChecked(state) {
|
onSessionChecked(state) {
|
||||||
let userData = sessionStore.getUserData();
|
let userData = sessionStore.getUserData();
|
||||||
|
let userId = sessionStore.getSessionData().userId;
|
||||||
|
|
||||||
return _.extend({}, state, {
|
return _.extend({}, state, {
|
||||||
initDone: true,
|
initDone: true,
|
||||||
|
@ -129,7 +130,8 @@ class SessionReducer extends Reducer {
|
||||||
userProfilePic: userData.profilePic,
|
userProfilePic: userData.profilePic,
|
||||||
userLevel: userData.level,
|
userLevel: userData.level,
|
||||||
userDepartments: userData.departments,
|
userDepartments: userData.departments,
|
||||||
userTickets: userData.tickets
|
userTickets: userData.tickets,
|
||||||
|
userId: userId
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue