Skip to content

Commit

Permalink
Merge pull request #4 from openimis/develop
Browse files Browse the repository at this point in the history
v1.3
  • Loading branch information
edarchis authored Oct 28, 2021
2 parents c229722 + c4cea5b commit c3167e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openimis/fe-contribution",
"version": "1.2.1",
"version": "1.3.0",
"license": "AGPL-3.0-only",
"description": "openIMIS Frontend Contribution reference module",
"repository": "openimis/openimis-fe-contribution_js",
Expand Down
9 changes: 2 additions & 7 deletions src/components/ContributionForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { withTheme, withStyles } from "@material-ui/core/styles";
import ReplayIcon from "@material-ui/icons/Replay"
import {
formatMessageWithValues, withModulesManager, withHistory,
Form, ProgressOrError, journalize, coreConfirm
Form, ProgressOrError, journalize, coreConfirm, Helmet
} from "@openimis/fe-core";
import { RIGHT_CONTRIBUTION } from "../constants";

Expand Down Expand Up @@ -34,12 +34,6 @@ class ContributionForm extends Component {
}

componentDidMount() {
document.title = formatMessageWithValues(
this.props.intl,
"contribution",
"ContributionOverview.title",
{ label: "" }
);
const {
contribution_uuid,
policy_uuid,
Expand Down Expand Up @@ -202,6 +196,7 @@ class ContributionForm extends Component {
}];
return (
<div className={!!runningMutation ? classes.lockedPage : null}>
<Helmet title={formatMessageWithValues(this.props.intl, "contribution", "ContributionOverview.title")} />
<SaveContributionDialog
contribution={saveContribution && contribution}
onConfirm={this._save}
Expand Down
5 changes: 1 addition & 4 deletions src/components/ContributionSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ class ContributionSearcher extends Component {
itemFormatters = () => {
const formatters = [
c => formatDateFromISO(this.props.modulesManager, this.props.intl, c.payDate),
c => <PublishedComponent
readOnly={true}
pubRef="payer.PayerPicker" withLabel={false} value={c.payer}
/>,
c => c.payer?.name ?? "",
c => formatAmount(this.props.intl, c.amount),
c => <PublishedComponent
readOnly={true}
Expand Down

0 comments on commit c3167e8

Please sign in to comment.