Skip to content

Commit

Permalink
Merge pull request #104 from OHDSI/release-1.11.2
Browse files Browse the repository at this point in the history
Release 1.11.2
  • Loading branch information
acumarav authored Jan 19, 2021
2 parents 31371b8 + 4a8b115 commit 1835f37
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Athena",
"version": "0.1.6",
"version": "0.1.8",
"main": "public/index.js",
"license": "Apache-2.0",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.odysseusinc.athena</groupId>
<artifactId>athena-resources</artifactId>
<version>1.11.1</version>
<version>1.11.2</version>
<packaging>pom</packaging>
<name>Athena Resources Bundle</name>

Expand Down
4 changes: 3 additions & 1 deletion src/modules/Admin/components/Statistics/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import presenter, { IStatisticsDispatchProps, IStatisticsProps, IStatisticsState
import { getSorting, getStatisticFilterForQuery } from './components/selectors';
import { SortingParams } from "modules/Admin/actions/statistics";
import { apiPaths } from 'modules/Admin/const';
import { get } from "lodash";

class Statistics extends Component<IStatisticsProps, {}> {

Expand Down Expand Up @@ -74,7 +75,8 @@ const mapDispatchToProps = {
function mapStateToProps(state: Object): IStatisticsStateProps {
const filter = getStatisticFilterForQuery(state);
const sorting = getSorting(state);
return {sorting, filter};
const isLoading= get(state, 'admin.statistics.isLoading', false);
return {sorting, filter, isLoading};
}

export default connect<IStatisticsStateProps, IStatisticsDispatchProps, {}>(
Expand Down
5 changes: 4 additions & 1 deletion src/modules/Admin/components/Statistics/presenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import * as React from 'react';
import BEMHelper from "services/BemHelper";

import { LoadingPanel } from 'arachne-ui-components';
import { Downloads, Filters } from './components';
import { SortingParams } from "../../actions/statistics";
import { IStatisticsFilter } from "./components/Filters/presenter";
Expand All @@ -37,7 +38,8 @@ interface IStatisticsProps extends IStatisticsStateProps, IStatisticsDispatchPro

interface IStatisticsStateProps {
sorting: SortingParams,
filter: IStatisticsFilter
filter: IStatisticsFilter,
isLoading: boolean
}

interface IStatisticsDispatchProps {
Expand All @@ -55,6 +57,7 @@ function Statistics(props: IStatisticsProps) {
<div {...classes({element: 'downloads-wrapper'})}>
<Downloads runSearch={props.runSearch}/>
</div>
<LoadingPanel active={props.isLoading}/>
</div>
</div>);
}
Expand Down

0 comments on commit 1835f37

Please sign in to comment.