diff --git a/web/client/components/manager/users/GroupGrid.jsx b/web/client/components/manager/users/GroupGrid.jsx
index f21e0707cd..9aab0714d8 100644
--- a/web/client/components/manager/users/GroupGrid.jsx
+++ b/web/client/components/manager/users/GroupGrid.jsx
@@ -11,6 +11,8 @@ const {Grid, Row, Col} = require('react-bootstrap');
const GroupCard = require('./GroupCard');
const Spinner = require('react-spinkit');
const Message = require('../../I18N/Message');
+const LocaleUtils = require('../../../Utils/LocaleUtils');
+
var GroupsGrid = React.createClass({
propTypes: {
loadGroups: React.PropTypes.func,
@@ -23,6 +25,9 @@ var GroupsGrid = React.createClass({
bottom: React.PropTypes.node,
colProps: React.PropTypes.object
},
+ contextTypes: {
+ messages: React.PropTypes.object
+ },
getDefaultProps() {
return {
loadGroups: () => {},
@@ -69,11 +74,11 @@ var GroupsGrid = React.createClass({
let actions = [{
onClick: () => {this.props.onEdit(group); },
glyph: "wrench",
- tooltip:
+ tooltip: LocaleUtils.getMessageById(this.context.messages, "usergroups.editGroup")
}, {
onClick: () => {this.props.onDelete(group && group.id); },
glyph: "remove-circle",
- tooltip:
+ tooltip: LocaleUtils.getMessageById(this.context.messages, "usergroups.deleteGroup")
}];
if ( group && group.groupName === "everyone") {
actions = [];
@@ -82,7 +87,7 @@ var GroupsGrid = React.createClass({
return
;
});
},
- render: function() {
+ render() {
return (
{this.renderLoading()}
diff --git a/web/client/components/manager/users/UserCard.jsx b/web/client/components/manager/users/UserCard.jsx
index ac541b06f3..ceb4c05862 100644
--- a/web/client/components/manager/users/UserCard.jsx
+++ b/web/client/components/manager/users/UserCard.jsx
@@ -60,7 +60,7 @@ const UserCard = React.createClass({
);
},
- render: function() {
+ render() {
return (
{},
@@ -69,7 +74,7 @@ var UsersGrid = React.createClass({
let actions = [{
onClick: () => {this.props.onEdit(user); },
glyph: "wrench",
- tooltip:
+ tooltip: LocaleUtils.getMessageById(this.context.messages, "users.editUser")
}];
if ( user && user.role === "GUEST") {
actions = [];
@@ -77,14 +82,14 @@ var UsersGrid = React.createClass({
actions.push({
onClick: () => {this.props.onDelete(user && user.id); },
glyph: "remove-circle",
- tooltip:
+ tooltip: LocaleUtils.getMessageById(this.context.messages, "users.deleteUser")
});
}
return ;
});
},
- render: function() {
+ render() {
return (
{this.renderLoading()}
diff --git a/web/client/components/maps/MapCard.jsx b/web/client/components/maps/MapCard.jsx
index f51c2f6f34..4334131a1b 100644
--- a/web/client/components/maps/MapCard.jsx
+++ b/web/client/components/maps/MapCard.jsx
@@ -13,6 +13,7 @@ const thumbUrl = require('./style/default.png');
const assign = require('object-assign');
const ConfirmModal = require('./modals/ConfirmModal');
+const LocaleUtils = require('../../Utils/LocaleUtils');
require("./style/mapcard.css");
@@ -27,6 +28,9 @@ const MapCard = React.createClass({
onEdit: React.PropTypes.func,
onMapDelete: React.PropTypes.func
},
+ contextTypes: {
+ messages: React.PropTypes.object
+ },
getDefaultProps() {
return {
style: {
@@ -67,7 +71,7 @@ const MapCard = React.createClass({
var availableAction = [{
onClick: (evt) => {this.stopPropagate(evt); this.props.viewerUrl(this.props.map); },
glyph: "chevron-right",
- tooltip:
+ tooltip: LocaleUtils.getMessageById(this.context.messages, "manager.openInANewTab")
}];
if (this.props.map.canEdit === true) {
@@ -76,13 +80,13 @@ const MapCard = React.createClass({
glyph: "wrench",
disabled: this.props.map.updating,
loading: this.props.map.updating,
- tooltip:
+ tooltip: LocaleUtils.getMessageById(this.context.messages, "manager.editMapMetadata")
}, {
onClick: (evt) => {this.stopPropagate(evt); this.displayDeleteDialog(); },
glyph: "remove-circle",
disabled: this.props.map.deleting,
loading: this.props.map.deleting,
- tooltip:
+ tooltip: LocaleUtils.getMessageById(this.context.messages, "manager.deleteMap")
});
}
return (
diff --git a/web/client/plugins/manager/users/GroupGrid.jsx b/web/client/plugins/manager/users/GroupGrid.jsx
index 688eb8c8f8..03e5f979ab 100644
--- a/web/client/plugins/manager/users/GroupGrid.jsx
+++ b/web/client/plugins/manager/users/GroupGrid.jsx
@@ -43,4 +43,4 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
}
});
};
-module.exports = connect(mapStateToProps, mapDispatchToProps, mergeProps)(require('../../../components/manager/users/GroupGrid'));
+module.exports = connect(mapStateToProps, mapDispatchToProps, mergeProps, {pure: false})(require('../../../components/manager/users/GroupGrid'));
diff --git a/web/client/plugins/manager/users/UserGrid.jsx b/web/client/plugins/manager/users/UserGrid.jsx
index a8b2bfebfb..dac2599dc3 100644
--- a/web/client/plugins/manager/users/UserGrid.jsx
+++ b/web/client/plugins/manager/users/UserGrid.jsx
@@ -15,7 +15,7 @@ const PaginationToolbar = require('./UsersPaginationToolbar');
const mapStateToProps = (state) => {
const users = state && state.users;
return {
- users: users && state.users.users,
+ users: users && users.users,
loading: users && (users.status === "loading"),
stateProps: users && users.stateProps,
start: users && users.start,
@@ -43,4 +43,4 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
}
});
};
-module.exports = connect(mapStateToProps, mapDispatchToProps, mergeProps)(require('../../../components/manager/users/UserGrid'));
+module.exports = connect(mapStateToProps, mapDispatchToProps, mergeProps, {pure: false})(require('../../../components/manager/users/UserGrid'));