Skip to content

Commit

Permalink
fix #1080 changed the name and added px
Browse files Browse the repository at this point in the history
  • Loading branch information
saidaipparla committed Oct 11, 2016
1 parent 868ffa8 commit be9b266
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions web/client/actions/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const RECORD_LIST_LOADED = 'RECORD_LIST_LOADED';
const RECORD_LIST_LOAD_ERROR = 'RECORD_LIST_LOAD_ERROR';
const CHANGE_CATALOG_FORMAT = 'CHANGE_CATALOG_FORMAT';
const ADD_LAYER_ERROR = 'ADD_LAYER_ERROR';
const RESET_STATUS = 'RESET_STATUS';
const CATALOG_RESET = 'CATALOG_RESET';

function recordsLoaded(options, result) {
return {
Expand Down Expand Up @@ -84,9 +84,9 @@ function addLayerError(error) {
};
}

function resetStatus() {
function catalogReset() {
return {
type: RESET_STATUS
type: CATALOG_RESET
};
}

Expand All @@ -95,10 +95,10 @@ module.exports = {
RECORD_LIST_LOAD_ERROR,
CHANGE_CATALOG_FORMAT,
ADD_LAYER_ERROR,
RESET_STATUS,
CATALOG_RESET,
getRecords,
textSearch,
changeCatalogFormat,
addLayerError,
resetStatus
catalogReset
};
4 changes: 2 additions & 2 deletions web/client/plugins/MetadataExplorer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {connect} = require('react-redux');
const assign = require('object-assign');
const {createSelector} = require("reselect");
const {Glyphicon, Panel} = require('react-bootstrap');
const {textSearch, changeCatalogFormat, addLayerError, resetStatus} = require("../actions/catalog");
const {textSearch, changeCatalogFormat, addLayerError, catalogReset} = require("../actions/catalog");
const {addLayer} = require("../actions/layers");
const {zoomToExtent} = require("../actions/map");
const {toggleControl} = require("../actions/controls");
Expand All @@ -32,7 +32,7 @@ const catalogSelector = createSelector([
const catalogClose = () => {
return (dispatch) => {
dispatch(toggleControl('metadataexplorer'));
dispatch(resetStatus());
dispatch(catalogReset());
};
};

Expand Down
2 changes: 1 addition & 1 deletion web/client/product/assets/css/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ html, body, #container, .fill {

#mapstore-catalog-panel {
width: auto;
margin: 100PX;
margin: 100px;
}

#mapstore-catalog-panel .record-item {
Expand Down
4 changes: 2 additions & 2 deletions web/client/reducers/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* LICENSE file in the root directory of this source tree.
*/

const {RECORD_LIST_LOADED, RECORD_LIST_LOAD_ERROR, CHANGE_CATALOG_FORMAT, ADD_LAYER_ERROR, RESET_STATUS} = require('../actions/catalog');
const {RECORD_LIST_LOADED, RECORD_LIST_LOAD_ERROR, CHANGE_CATALOG_FORMAT, ADD_LAYER_ERROR, CATALOG_RESET} = require('../actions/catalog');
const assign = require('object-assign');

function catalog(state = null, action) {
Expand All @@ -18,7 +18,7 @@ function catalog(state = null, action) {
loadingError: null,
layerError: null
});
case RESET_STATUS: {
case CATALOG_RESET: {
return {
result: null,
loadingError: null,
Expand Down

0 comments on commit be9b266

Please sign in to comment.