Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Foundation
IT
Websites
membership.eclipse.org
Commits
3d0fbeff
Unverified
Commit
3d0fbeff
authored
Sep 08, 2021
by
Zhou (Link) Fang
Committed by
GitHub
Sep 08, 2021
Browse files
fixed backup issue in a specific task flow (#317)
parent
41c1f9f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/www/src/components/Application/Application.js
View file @
3d0fbeff
...
...
@@ -299,6 +299,7 @@ export default function Application() {
resetMembershipLevelForm
=
{
formikMembershipLevel
.
resetForm
}
resetWorkingGroupForm
=
{
formikWorkingGroups
.
resetForm
}
resetSigningAuthorityForm
=
{
formikSigningAuthority
.
resetForm
}
setUpdatedFormValues
=
{
setUpdatedFormValues
}
/
>
<
/Route
>
...
...
src/main/www/src/components/Application/SignIn/SignIn.js
View file @
3d0fbeff
...
...
@@ -132,6 +132,7 @@ class SignIn extends React.Component {
resetMembershipLevelForm
=
{
this
.
props
.
resetMembershipLevelForm
}
resetWorkingGroupForm
=
{
this
.
props
.
resetWorkingGroupForm
}
resetSigningAuthorityForm
=
{
this
.
props
.
resetSigningAuthorityForm
}
setUpdatedFormValues
=
{
this
.
props
.
setUpdatedFormValues
}
/
>
)
:
(
this
.
renderButtons
(
this
.
props
.
setFurthestPage
)
...
...
src/main/www/src/components/UIComponents/FormPreprocess/FormChooser.js
View file @
3d0fbeff
...
...
@@ -13,6 +13,7 @@ import {
}
from
'
../../../Utils/formFunctionHelpers
'
;
import
{
useCallback
,
useContext
,
useEffect
,
useState
}
from
'
react
'
;
import
Loading
from
'
../Loading/Loading
'
;
import
{
initialValues
}
from
'
../FormComponents/formFieldModel
'
;
const
styles
=
{
marginBottom
:
'
30px
'
,
textAlign
:
'
center
'
,
...
...
@@ -26,6 +27,7 @@ const FormChooser = ({
resetWorkingGroupForm
,
resetMembershipLevelForm
,
resetCompanyInfoForm
,
setUpdatedFormValues
})
=>
{
const
{
setCurrentFormId
,
furthestPage
}
=
useContext
(
MembershipContext
);
const
[
hasExistingForm
,
setHasExistingForm
]
=
useState
(
''
);
...
...
@@ -42,7 +44,10 @@ const FormChooser = ({
const
handleStartNewForm
=
()
=>
{
setIsStartNewForm
(
true
);
if
(
getCurrentMode
()
===
MODE_REACT_API
)
setCurrentFormId
(
''
);
setUpdatedFormValues
(
initialValues
);
// reset backup values
if
(
getCurrentMode
()
===
MODE_REACT_API
)
{
setCurrentFormId
(
''
);
}
// reset the form if user has gone to a further page/step
if
(
furthestPage
.
index
>
0
)
{
resetCompanyInfoForm
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment