Merge pull request #1055 from chaotixkilla/feat-custom-info-requests-as-manual-triggers
Add custom info request manual trigger behavior
This commit is contained in:
commit
d5b7b088cd
11 changed files with 167 additions and 88 deletions
|
|
@ -241,7 +241,6 @@ const CustomerData = ({
|
|||
]
|
||||
|
||||
R.forEach(it => {
|
||||
console.log('it', it)
|
||||
customRequirements.push({
|
||||
fields: [
|
||||
{
|
||||
|
|
@ -253,12 +252,13 @@ const CustomerData = ({
|
|||
],
|
||||
title: it.customInfoRequest.customRequest.name,
|
||||
titleIcon: <CardIcon className={classes.cardIcon} />,
|
||||
state: R.path(['override'])(it),
|
||||
authorize: () =>
|
||||
authorizeCustomRequest({
|
||||
variables: {
|
||||
customerId: it.customerId,
|
||||
infoRequestId: it.customInfoRequest.id,
|
||||
isAuthorized: true
|
||||
override: OVERRIDE_AUTHORIZED
|
||||
}
|
||||
}),
|
||||
reject: () =>
|
||||
|
|
@ -266,7 +266,7 @@ const CustomerData = ({
|
|||
variables: {
|
||||
customerId: it.customerId,
|
||||
infoRequestId: it.customInfoRequest.id,
|
||||
isAuthorized: false
|
||||
override: OVERRIDE_REJECTED
|
||||
}
|
||||
}),
|
||||
save: values => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue