Skip to content

Commit

Permalink
UICIRC-479 - updated tokens for fees/fines
Browse files Browse the repository at this point in the history
  • Loading branch information
maximdidenkoepam committed Jul 3, 2020
1 parent 3f67d01 commit 4463585
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
9 changes: 0 additions & 9 deletions src/settings/PatronNotices/TokensList/TokensList.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ class TokensList extends React.Component {
label: <FormattedMessage id="ui-circulation.settings.patronNotices.multipleLoans" />,
tag: 'loans',
};

this.feeFineActionLoopConfig = {
enabled: true,
label: <FormattedMessage id="ui-circulation.settings.patronNotices.multipleFeeFineActions" />,
tag: 'feeActions',
};
}

render() {
Expand Down Expand Up @@ -121,7 +115,6 @@ class TokensList extends React.Component {
selectedCategory={selectedCategory}
header={<FormattedMessage id="ui-circulation.settings.patronNotices.feeFineChargeTokenHeader" />}
tokens={tokens.feeFineCharge}
onLoopSelect={onLoopSelect}
onSectionInit={onSectionInit}
onTokenSelect={onTokenSelect}
/>
Expand All @@ -134,8 +127,6 @@ class TokensList extends React.Component {
selectedCategory={selectedCategory}
header={<FormattedMessage id="ui-circulation.settings.patronNotices.feeFineActionTokenHeader" />}
tokens={tokens.feeFineAction}
loopConfig={this.feeFineActionLoopConfig}
onLoopSelect={onLoopSelect}
onSectionInit={onSectionInit}
onTokenSelect={onTokenSelect}
/>
Expand Down
9 changes: 4 additions & 5 deletions src/settings/PatronNotices/tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ const formats = {
],
},
{
token: 'feeCharge.date',
token: 'feeCharge.chargeDate',
previewValue: 'Jun 30, 2020',
allowedFor: [
patronNoticeCategoryIds.FEE_FINE_CHARGE,
Expand All @@ -299,7 +299,7 @@ const formats = {
],
},
{
token: 'feeCharge.dateTime',
token: 'feeCharge.chargeDateTime',
previewValue: 'Jun 30, 2020 11:00',
allowedFor: [
patronNoticeCategoryIds.FEE_FINE_CHARGE,
Expand Down Expand Up @@ -330,7 +330,6 @@ const formats = {
previewValue: 'This is a text field intended to provide additional information for the patron regarding the fee/fine.',
allowedFor: [
patronNoticeCategoryIds.FEE_FINE_CHARGE,
patronNoticeCategoryIds.AUTOMATED_FEE_FINE,
patronNoticeCategoryIds.FEE_FINE_ACTION,
],
},
Expand All @@ -342,12 +341,12 @@ const formats = {
allowedFor: [patronNoticeCategoryIds.FEE_FINE_ACTION],
},
{
token: 'feeAction.date',
token: 'feeAction.actionDate',
previewValue: 'Jul 10, 2020',
allowedFor: [patronNoticeCategoryIds.FEE_FINE_ACTION],
},
{
token: 'feeAction.dateTime',
token: 'feeAction.actionDateTime',
previewValue: 'Jul 10, 2020 8:00',
allowedFor: [patronNoticeCategoryIds.FEE_FINE_ACTION],
},
Expand Down

0 comments on commit 4463585

Please sign in to comment.