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

[pull] main from KelvinTegelaar:main #82

Merged
merged 23 commits into from
Jan 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
563cee5
feat: added features to Inactive users page
OfficialEsco Jan 15, 2025
243e318
feat: added block sign in to Inactive users
OfficialEsco Jan 15, 2025
103ffd3
Readd actions and add a filter
kris6673 Jan 15, 2025
c3897ad
Merge pull request #81 from KelvinTegelaar/dev
kris6673 Jan 16, 2025
26694aa
Fix broken dropdowns
kris6673 Jan 16, 2025
a532c6c
FIX: Teams dropdowns
kris6673 Jan 16, 2025
155765b
whoops forgot that one
kris6673 Jan 16, 2025
3d8dfbf
Update licenses
kris6673 Jan 16, 2025
1c4e0ea
Add Apple Business Manager terms alert
rvdwegen Jan 17, 2025
12ae653
Merge pull request #3338 from rvdwegen/patch-5
KelvinTegelaar Jan 17, 2025
8345ef2
Merge pull request #3329 from kris6673/license-update
KelvinTegelaar Jan 17, 2025
7d8ee7a
Merge pull request #3276 from Ren-Roros-Digital/InactiveUsersPage
KelvinTegelaar Jan 17, 2025
9f2ba33
Merge pull request #3328 from kris6673/more-dropdowns
KelvinTegelaar Jan 17, 2025
a7be37b
Merge pull request #3277 from kris6673/AppConsentRequests-missing-act…
KelvinTegelaar Jan 17, 2025
a28fe45
add removeNulls to CippWizardStepButtons
JohnDuprey Jan 17, 2025
f6bf5d5
fix gdap missing default check
JohnDuprey Jan 17, 2025
3c8e2e9
select done
KelvinTegelaar Jan 17, 2025
0c326bd
up value
KelvinTegelaar Jan 17, 2025
75d15d6
Update alert.jsx
JohnDuprey Jan 17, 2025
56c07d4
Update alert.jsx
JohnDuprey Jan 17, 2025
f912a82
Merge pull request #231 from KelvinTegelaar/dev
JohnDuprey Jan 17, 2025
cc8f5cd
Merge pull request #3347 from JohnDuprey/dev
JohnDuprey Jan 17, 2025
0520849
Merge pull request #3346 from KelvinTegelaar/dev
KelvinTegelaar Jan 17, 2025
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
2 changes: 1 addition & 1 deletion public/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "7.0.4"
"version": "7.0.5"
}
27 changes: 27 additions & 0 deletions src/components/CippComponents/CippFormComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,33 @@ export const CippFormComponent = (props) => {
</>
);

case "select":
return (
<>
<div>
<Controller
name={convertedName}
control={formControl.control}
rules={validators}
render={({ field }) => (
<CippAutoComplete
{...other}
isFetching={other.isFetching}
variant="filled"
defaultValue={field.value}
label={label}
multiple={false}
onChange={(value) => field.onChange(value.value)}
/>
)}
/>
</div>
<Typography variant="subtitle3" color="error">
{get(errors, convertedName, {}).message}
</Typography>
</>
);

case "autoComplete":
return (
<>
Expand Down
1 change: 1 addition & 0 deletions src/components/CippWizard/CippWizardOffboarding.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ export const CippWizardOffboarding = (props) => {
onPreviousStep={onPreviousStep}
onNextStep={onNextStep}
formControl={formControl}
replacementBehaviour="removeNulls"
/>
</Stack>
);
Expand Down
12 changes: 11 additions & 1 deletion src/components/CippWizard/CippWizardStepButtons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,24 @@ export const CippWizardStepButtons = (props) => {
formControl,
noNextButton = false,
noSubmitButton = false,
replacementBehaviour,
queryKeys,
...other
} = props;
const { isValid, isSubmitted, isSubmitting } = useFormState({ control: formControl.control });
const sendForm = ApiPostCall({ relatedQueryKeys: queryKeys });
const handleSubmit = () => {
const values = formControl.getValues();
sendForm.mutate({ url: postUrl, data: values });
const newData = {};
Object.keys(values).forEach((key) => {
const value = values[key];
if (replacementBehaviour !== "removeNulls") {
newData[key] = value;
} else if (row[value] !== undefined) {
newData[key] = row[value];
}
});
sendForm.mutate({ url: postUrl, data: newData });
};

return (
Expand Down
Loading