Skip to content

Commit

Permalink
Merge pull request KelvinTegelaar#155 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
[pull] dev from KelvinTegelaar:dev
  • Loading branch information
JohnDuprey authored Mar 29, 2024
2 parents 5c69db8 + eb56d15 commit 8c467df
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cipp",
"version": "5.3.2",
"version": "5.4.0",
"description": "The CyberDrain Improved Partner Portal is a portal to help manage administration for Microsoft Partners.",
"homepage": "https://cipp.app/",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion public/version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.2
5.4.0
28 changes: 23 additions & 5 deletions src/views/identity/administration/OffboardingWizard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const OffboardingWizard = () => {
RemoveLicenses: values.RemoveLicenses,
ResetPass: values.ResetPass,
RevokeSessions: values.RevokeSessions,
user: values.User.value,
user: values.User,
deleteuser: values.DeleteUser,
removeRules: values.RemoveRules,
removeMobile: values.RemoveMobile,
Expand Down Expand Up @@ -119,6 +119,7 @@ const OffboardingWizard = () => {
<hr className="my-4" />
<div className="mb-2">
<RFFSelectSearch
multi
label={'Users in ' + tenantDomain}
values={users?.map((user) => ({
value: user.userPrincipalName,
Expand All @@ -128,6 +129,17 @@ const OffboardingWizard = () => {
name="User"
/>
{usersError && <span>Failed to load list of users</span>}
<FormSpy>
{/* eslint-disable react/prop-types */}
{(props) => (
<>
{console.log(props.values)}
{props.values.User?.length >= 3 && (
<CCallout color="warning">A maximum of three users is recommend.</CCallout>
)}
</>
)}
</FormSpy>
</div>
<hr className="my-4" />
</CippWizard.Page>
Expand Down Expand Up @@ -278,10 +290,16 @@ const OffboardingWizard = () => {
<h5 className="mb-0">Selected Tenant:</h5>
{tenantDomain}
</CListGroupItem>
<CListGroupItem className="d-flex justify-content-between align-items-center">
<h5 className="mb-0">Selected User:</h5>
{props.values.User.value}
</CListGroupItem>

{props.values.User.map((user) => (
<CListGroupItem
key={user.value}
className="d-flex justify-content-between align-items-center"
>
<h5 className="mb-0">Selected User:</h5>
{user.value}
</CListGroupItem>
))}
</CListGroup>
<hr />
</CCol>
Expand Down
2 changes: 1 addition & 1 deletion version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.2
5.4.0

0 comments on commit 8c467df

Please sign in to comment.