Skip to content

Commit

Permalink
Merge pull request #8 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey authored Jul 4, 2023
2 parents 34c8bd5 + b025b6c commit 0c06c9c
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 54 deletions.
1 change: 1 addition & 0 deletions LICENSE.CustomLicenses
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Custom licenses are available upon agreement via Github Sponsorships. Custom licenses will not have to be published in this repository. All contributors automatically agree with this provision.
2 changes: 1 addition & 1 deletion public/version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.6.0
3.7.0
17 changes: 1 addition & 16 deletions src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,7 @@ const AutopilotListStatusPages = React.lazy(() =>
)
const IntuneListPolicies = React.lazy(() => import('src/views/endpoint/intune/MEMListPolicies'))
const MEMEditPolicy = React.lazy(() => import('src/views/endpoint/intune/MEMEditPolicy'))
const EditAutopilotProfile = React.lazy(() =>
import('src/views/endpoint/autopilot/AutopilotEditProfile'),
)
const EditAutopilotStatusPage = React.lazy(() =>
import('src/views/endpoint/autopilot/AutopilotEditStatusPage'),
)

const IntuneCAPolicies = React.lazy(() => import('src/views/endpoint/intune/MEMCAPolicies'))
const IntuneAddPolicy = React.lazy(() => import('src/views/endpoint/intune/MEMAddPolicy'))
const MEMAddPolicyTemplate = React.lazy(() =>
Expand Down Expand Up @@ -432,16 +427,6 @@ const routes = [
name: 'List Status Pages',
component: AutopilotListStatusPages,
},
{
path: '/endpoint/autopilot/edit-autopilot-profiles',
name: 'Edit Autopilot Profiles',
component: EditAutopilotProfile,
},
{
path: '/endpoint/autopilot/edit-autopilot-status-page',
name: 'Edit Autopilot Status Page',
component: EditAutopilotStatusPage,
},
{ path: '/endpoint/MEM', name: 'MEM' },
{ path: '/endpoint/MEM/list-policies', name: 'List MEM Policies', component: IntuneListPolicies },
{ path: '/endpoint/MEM/edit-policy', name: 'Edit MEM Policy', component: MEMEditPolicy },
Expand Down
11 changes: 10 additions & 1 deletion src/views/endpoint/autopilot/AutopilotAddDevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ const AddAPDevice = () => {
},
},
]

const valbutton = (value) =>
autopilotData ? undefined : 'You must add at least one device. Did you forget to click add?'
const handleOnDrop = (data) => {
const importdata = data.map((item) => {
const normalizedData = {}
Expand Down Expand Up @@ -209,6 +210,14 @@ const AddAPDevice = () => {
}}
</FormSpy>
</CCol>
<Field
key={autopilotData}
name="BlockNext"
component="hidden"
type="hidden"
validate={valbutton}
></Field>
<Error name="BlockNext" />
</CRow>
<CRow>
<CCol>
Expand Down
11 changes: 0 additions & 11 deletions src/views/endpoint/autopilot/AutopilotAddPolicyTemplate.js

This file was deleted.

1 change: 0 additions & 1 deletion src/views/endpoint/autopilot/AutopilotAddProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ const ApplyStandard = () => {
{!postResults.isSuccess && (
<FormSpy>
{(props) => {
/* eslint-disable react/prop-types */
return (
<>
<CRow>
Expand Down
1 change: 0 additions & 1 deletion src/views/endpoint/autopilot/AutopilotAddStatusPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ const ApplyStandard = () => {
{!postResults.isSuccess && (
<FormSpy>
{(props) => {
/* eslint-disable react/prop-types */
return (
<>
<CRow>
Expand Down
11 changes: 0 additions & 11 deletions src/views/endpoint/autopilot/AutopilotEditProfile.js

This file was deleted.

11 changes: 0 additions & 11 deletions src/views/endpoint/autopilot/AutopilotEditStatusPage.js

This file was deleted.

2 changes: 1 addition & 1 deletion version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.6.0
3.7.0

0 comments on commit 0c06c9c

Please sign in to comment.