Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(service release process): fixed save functionality #209

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ npm/npmjs/-/eslint-config-prettier/8.8.0, MIT, approved, #7543
npm/npmjs/-/eslint-config-react-app/7.0.1, MIT, approved, clearlydefined
npm/npmjs/-/eslint-config-standard-with-typescript/35.0.0, MIT, approved, #9133
npm/npmjs/-/eslint-config-standard/17.0.0, MIT, approved, clearlydefined
npm/npmjs/-/eslint-import-resolver-node/0.3.7, MIT, approved, clearlydefined
npm/npmjs/-/eslint-import-resolver-node/0.3.7, MIT, approved, #9923
npm/npmjs/-/eslint-module-utils/2.8.0, MIT, approved, #8209
npm/npmjs/-/eslint-plugin-es/4.1.0, MIT, approved, #5026
npm/npmjs/-/eslint-plugin-flowtype/8.0.3, BSD-3-Clause, approved, #2958
Expand All @@ -257,7 +257,7 @@ npm/npmjs/-/eslint-plugin-react-hooks/4.6.0, MIT, approved, clearlydefined
npm/npmjs/-/eslint-plugin-react/7.32.2, MIT, approved, #7035
npm/npmjs/-/eslint-plugin-testing-library/5.11.0, MIT, approved, clearlydefined
npm/npmjs/-/eslint-scope/5.1.1, BSD-2-Clause, approved, clearlydefined
npm/npmjs/-/eslint-scope/7.2.0, BSD-2-Clause, approved, clearlydefined
npm/npmjs/-/eslint-scope/7.2.0, BSD-2-Clause, approved, #9916
npm/npmjs/-/eslint-utils/2.1.0, MIT, approved, #2498
npm/npmjs/-/eslint-utils/3.0.0, MIT, approved, #2431
npm/npmjs/-/eslint-visitor-keys/1.3.0, Apache-2.0, approved, #2501
Expand Down Expand Up @@ -576,7 +576,6 @@ npm/npmjs/-/normalize-path/3.0.0, MIT, approved, clearlydefined
npm/npmjs/-/normalize-range/0.1.2, MIT, approved, clearlydefined
npm/npmjs/-/normalize-url/6.1.0, MIT, approved, clearlydefined
npm/npmjs/-/npm-run-path/4.0.1, MIT, approved, clearlydefined
npm/npmjs/-/nth-check/1.0.2, BSD-2-Clause, approved, CQ22629
npm/npmjs/-/nth-check/2.1.1, BSD-2-Clause, approved, clearlydefined
npm/npmjs/-/nwsapi/2.2.5, MIT, approved, #7909
npm/npmjs/-/object-assign/4.1.1, MIT, approved, clearlydefined
Expand Down Expand Up @@ -1115,7 +1114,7 @@ npm/npmjs/@babel/plugin-transform-unicode-property-regex/7.22.5, MIT AND (BSD-2-
npm/npmjs/@babel/plugin-transform-unicode-regex/7.22.5, MIT, approved, #8929
npm/npmjs/@babel/plugin-transform-unicode-sets-regex/7.22.5, MIT AND (BSD-2-Clause AND ISC AND MIT) AND BSD-2-Clause AND BSD-3-Clause, approved, #8755
npm/npmjs/@babel/preset-env/7.22.5, MIT AND (BSD-2-Clause AND ISC AND MIT) AND BSD-2-Clause AND BSD-3-Clause, approved, #8748
npm/npmjs/@babel/preset-modules/0.1.5, MIT, approved, clearlydefined
npm/npmjs/@babel/preset-modules/0.1.5, MIT, approved, #9932
npm/npmjs/@babel/preset-react/7.22.5, MIT, approved, #8987
npm/npmjs/@babel/preset-typescript/7.22.5, MIT, approved, #9074
npm/npmjs/@babel/regjsgen/0.8.0, MIT, approved, #7149
Expand All @@ -1124,7 +1123,7 @@ npm/npmjs/@babel/template/7.22.5, MIT, approved, #9017
npm/npmjs/@babel/traverse/7.22.5, MIT, approved, #8954
npm/npmjs/@babel/types/7.22.5, MIT, approved, #8967
npm/npmjs/@bcoe/v8-coverage/0.2.3, ISC AND MIT, approved, clearlydefined
npm/npmjs/@catena-x/portal-shared-components/2.0.14, Apache-2.0 AND (BSD-3-Clause AND MIT), approved, #9187
npm/npmjs/@catena-x/portal-shared-components/2.0.18, Apache-2.0 AND (BSD-3-Clause AND MIT), approved, #9187
npm/npmjs/@csstools/normalize.css/12.0.0, CC0-1.0, approved, clearlydefined
npm/npmjs/@csstools/postcss-cascade-layers/1.1.1, CC0-1.0, approved, clearlydefined
npm/npmjs/@csstools/postcss-color-function/1.1.1, CC0-1.0 AND (MIT AND W3C-20150513) AND W3C-20150513 AND MIT, approved, #3022
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,16 +347,13 @@ export default function CommonContractAndConsent({
await updateAgreementConsents(updateData)
.unwrap()
.then(() => {
if (
buttonLabel === ButtonLabelTypes.SAVE_AND_PROCEED &&
type === ReleaseProcessTypes.APP_RELEASE
) {
dispatch(increment())
} else {
dispatch(serviceReleaseStepIncrement())
buttonLabel === ButtonLabelTypes.SAVE && setContractSnackbar(true)
if (buttonLabel === ButtonLabelTypes.SAVE_AND_PROCEED) {
type === ReleaseProcessTypes.APP_RELEASE && dispatch(increment())
type === ReleaseProcessTypes.SERVICE_RELEASE &&
dispatch(serviceReleaseStepIncrement())
}
setAgreementData([])
buttonLabel === ButtonLabelTypes.SAVE && setContractSnackbar(true)
})
.catch(() => {
setContractNotification(true)
Expand Down