Ivan Diaz - Fix activity list minor issues [skip ci]

This commit is contained in:
ivan 2017-01-05 21:31:43 -03:00
parent 5ea4137e41
commit 4213c77e6e
4 changed files with 13 additions and 22 deletions

View File

@ -45,8 +45,9 @@ class AdminPanelActivity extends React.Component {
getMenuProps() {
return {
className: 'admin-panel-activity__menu',
onItemClick: this.onMenuItemClick.bind(this),
type: 'horizontal-list-bright',
onItemClick: this.onMenuItemClick.bind(this),
tabbable: true,
items: [
{
content: i18n('MY_NOTIFICATIONS'),
@ -57,26 +58,16 @@ class AdminPanelActivity extends React.Component {
icon: ''
}
]
}
};
}
renderList() {
if (this.state.mode === 'staff') {
return (
<div>
{this.state.activities.map(this.renderRow.bind(this))}
{(!this.state.limit) ? this.renderButton() : null}
</div>
);
}
else {
return (
<div>
{this.state.activities.map(this.renderRow.bind(this))}
{(!this.state.limit) ? this.renderButton() : null}
</div>
);
}
return (
<div>
{this.state.activities.map(this.renderRow.bind(this))}
{(!this.state.limit) ? this.renderButton() : null}
</div>
);
}
renderButton() {
@ -89,7 +80,7 @@ class AdminPanelActivity extends React.Component {
renderRow(row, index) {
return (
<ActivityRow key={index} {...row} mode={this.state.mode} />
<ActivityRow key={index} mode={this.state.mode} {...row} />
);
}

View File

@ -1,7 +1,7 @@
.admin-panel-activity {
&__menu {
margin: 0 auto;
margin: 0 auto 20px auto;
width: 300px;
}
}

View File

@ -1060,7 +1060,7 @@ module.exports = [
},
{
path: '/staff/last-events',
time: 30,
time: 300,
response: function(data) {
if(data.page > 5) {

View File

@ -159,7 +159,7 @@ module.exports = [
},
{
path: '/system/get-logs',
time: 30,
time: 300,
response: function() {
return {
"status": "success",