summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-28 08:48:12 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-28 08:48:12 -0700
commit953e27cdf7037a70b9c5b7ba7cd94aab40f17de9 (patch)
treef56228231b1877bc09d992620c53cee013e00a26 /web
parent46e2e3ebd9180e0ccbfa7335a586215cf9051b4d (diff)
parentc6f3361d3caf671ca64b798d5ac9eca97c387f9e (diff)
downloadchat-953e27cdf7037a70b9c5b7ba7cd94aab40f17de9.tar.gz
chat-953e27cdf7037a70b9c5b7ba7cd94aab40f17de9.tar.bz2
chat-953e27cdf7037a70b9c5b7ba7cd94aab40f17de9.zip
Merge branch 'master' into PLT-340
Diffstat (limited to 'web')
-rw-r--r--web/react/components/admin_console/team_analytics.jsx4
-rw-r--r--web/react/components/admin_console/team_users.jsx10
-rw-r--r--web/react/utils/utils.jsx8
-rw-r--r--web/sass-files/sass/partials/_admin-console.scss1
4 files changed, 10 insertions, 13 deletions
diff --git a/web/react/components/admin_console/team_analytics.jsx b/web/react/components/admin_console/team_analytics.jsx
index dd8812ad0..a945a551c 100644
--- a/web/react/components/admin_console/team_analytics.jsx
+++ b/web/react/components/admin_console/team_analytics.jsx
@@ -56,6 +56,8 @@ export default class TeamAnalytics extends React.Component {
teamId,
'post_counts_day',
(data) => {
+ data.reverse();
+
var chartData = {
labels: [],
datasets: [{
@@ -89,6 +91,8 @@ export default class TeamAnalytics extends React.Component {
teamId,
'user_counts_with_posts_day',
(data) => {
+ data.reverse();
+
var chartData = {
labels: [],
datasets: [{
diff --git a/web/react/components/admin_console/team_users.jsx b/web/react/components/admin_console/team_users.jsx
index ffb412159..b44aba56e 100644
--- a/web/react/components/admin_console/team_users.jsx
+++ b/web/react/components/admin_console/team_users.jsx
@@ -33,14 +33,6 @@ export default class UserList extends React.Component {
this.getTeamProfiles(this.props.team.id);
}
- // this.setState({
- // teamId: this.state.teamId,
- // users: this.state.users,
- // serverError: this.state.serverError,
- // showPasswordModal: this.state.showPasswordModal,
- // user: this.state.user
- // });
-
getTeamProfiles(teamId) {
Client.getProfilesForTeam(
teamId,
@@ -95,8 +87,6 @@ export default class UserList extends React.Component {
}
doPasswordResetDismiss() {
- this.state.showPasswordModal = false;
- this.state.user = null;
this.setState({
teamId: this.state.teamId,
users: this.state.users,
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index fadab27a7..3140a5d77 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -211,11 +211,15 @@ export function displayDateTime(ticks) {
}
interval = Math.floor(seconds / 60);
- if (interval > 1) {
+ if (interval >= 2) {
return interval + ' minutes ago';
}
- return '1 minute ago';
+ if (interval >= 1) {
+ return '1 minute ago';
+ }
+
+ return 'just now';
}
export function displayCommentDateTime(ticks) {
diff --git a/web/sass-files/sass/partials/_admin-console.scss b/web/sass-files/sass/partials/_admin-console.scss
index d0241f795..9c65e2d1e 100644
--- a/web/sass-files/sass/partials/_admin-console.scss
+++ b/web/sass-files/sass/partials/_admin-console.scss
@@ -38,7 +38,6 @@
.recent-active-users {
width: 365px;
- height: 375px;
border: 1px solid #ddd;
padding: 5px 10px 10px 10px;
margin: 10px 10px 10px 10px;