Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Foundation
IT
Websites
membership.eclipse.org
Commits
82ed1849
Unverified
Commit
82ed1849
authored
Aug 13, 2021
by
Zhou (Link) Fang
Committed by
GitHub
Aug 13, 2021
Browse files
Improved WG fetch logic (#241)
parent
9c72a6c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/www/src/components/Application/Application.js
View file @
82ed1849
...
...
@@ -164,18 +164,26 @@ export default function Application() {
setUpdatedFormValues
({
...
updatedFormValues
,
workingGroups
});
console
.
log
(
'
updated working groups:
'
,
values
);
const
setFieldValueObj
=
{
fieldName
:
'
workingGroups
'
,
method
:
formikWorkingGroups
.
setFieldValue
,
};
executeSendDataByStep
(
3
,
values
,
currentFormId
,
currentUser
.
name
,
goToNextStep
,
setFieldValueObj
);
if
(
values
.
isJoiningWG
){
// If the user is joining at least 1 wg, then make related API call
const
setFieldValueObj
=
{
fieldName
:
'
workingGroups
'
,
method
:
formikWorkingGroups
.
setFieldValue
,
};
executeSendDataByStep
(
3
,
values
,
currentFormId
,
currentUser
.
name
,
goToNextStep
,
setFieldValueObj
);
}
else
{
// If the user is NOT joining any wg, then go to next page directly
goToNextStep
(
3
,
'
/signing-authority
'
)
}
},
});
...
...
src/main/www/src/components/Application/WorkingGroups/WorkingGroupsWrapper.js
View file @
82ed1849
...
...
@@ -120,8 +120,8 @@ const WorkingGroupsWrapper = ({ formik, isStartNewForm }) => {
})
.
then
((
data
)
=>
{
let
options
=
data
.
map
((
item
)
=>
({
label
:
item
.
title
,
value
:
item
.
title
,
label
:
item
.
title
||
item
.
name
,
value
:
item
.
title
||
item
.
name
,
participation_levels
:
item
.
levels
,
}));
setFullWorkingGroupList
(
options
);
...
...
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