Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saidaipparla committed Oct 28, 2016
1 parent 7a09320 commit 5dbb0a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/client/components/maps/MapGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ var MapGrid = React.createClass({
renderMetadataModal() {
if (this.props.metadataModal) {
let MetadataModal = this.props.metadataModal;
return (<MetadataModal key="metadataModal" show={this.props.currentMap && this.props.currentMap.displayMetadataEdit} onHide={this.props.resetCurrentMap}
return (<MetadataModal key="metadataModal" ref="metadataModal" show={this.props.currentMap && this.props.currentMap.displayMetadataEdit} onHide={this.props.resetCurrentMap}
onClose={this.props.resetCurrentMap}
map={this.props.currentMap}
onSaveAll={this.props.saveAll}
Expand Down
2 changes: 1 addition & 1 deletion web/client/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
"closeGlyph": "1-close",
"submitConfig": {
"buttonConfig": {
"bsSize": "medium",
"bsSize": "small",
"bsStyle": "primary"
},
"glyph": ""
Expand Down
6 changes: 3 additions & 3 deletions web/client/plugins/CreateNewMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ const CreateNewMap = React.createClass({
mapType: React.PropTypes.string,
onGoToMap: React.PropTypes.func,
colProps: React.PropTypes.object,
isLoggedIn: React.PropTypes.object
isLoggedIn: React.PropTypes.bool
},
contextTypes: {
router: React.PropTypes.object
},
getDefaultProps() {
return {
mapType: "leaflet",
isLoggedIn: "",
isLoggedIn: false,
onGoToMap: () => {},
colProps: {
xs: 12,
Expand All @@ -51,6 +51,6 @@ const CreateNewMap = React.createClass({
module.exports = {
CreateNewMapPlugin: connect((state) => ({
mapType: (state.maps && state.maps.mapType) || (state.home && state.home.mapType),
isLoggedIn: state && state.security && state.security.user
isLoggedIn: state && state.security && state.security.user && state.security.user.enabled
}))(CreateNewMap)
};

0 comments on commit 5dbb0a7

Please sign in to comment.