Skip to content

Commit

Permalink
Merge pull request KelvinTegelaar#1711 from KelvinTegelaar/dev
Browse files Browse the repository at this point in the history
Dev to release
  • Loading branch information
KelvinTegelaar authored Aug 27, 2023
2 parents 3161517 + 34a30c0 commit 106823e
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 27 deletions.
1 change: 0 additions & 1 deletion deployment/AzureDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"funcAppName": "[toLower(concat(parameters('baseName'), variables('suffix')))]",
"funcStorageName": "[tolower(concat(substring(parameters('baseName'), 0, min(length(parameters('baseName')),16)), 'stg', variables('suffix')))]",
"serverFarmName": "[concat(substring(parameters('baseName'), 0, min(length(parameters('baseName')),14)), '-srv-', variables('suffix'))]",
"repoURL": "https://github.com/KelvinTegelaar/AzValidate.git",
"uniqueResourceNameBase": "[toLower(concat(parameters('baseName'), variables('suffix')))]",
"swaName": "[toLower(concat(parameters('baseName'), '-swa-', variables('suffix')))]"
},
Expand Down
1 change: 0 additions & 1 deletion deployment/AzureDeploymentTemplate_regionoptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"funcAppName": "[toLower(concat(parameters('baseName'), variables('suffix')))]",
"funcStorageName": "[tolower(concat(substring(parameters('baseName'), 0, min(length(parameters('baseName')),16)), 'stg', variables('suffix')))]",
"serverFarmName": "[concat(substring(parameters('baseName'), 0, min(length(parameters('baseName')),14)), '-srv-', variables('suffix'))]",
"repoURL": "https://github.com/KelvinTegelaar/AzValidate.git",
"uniqueResourceNameBase": "[toLower(concat(parameters('baseName'), variables('suffix')))]",
"swaName": "[toLower(concat(parameters('baseName'), '-swa-', variables('suffix')))]"
},
Expand Down
1 change: 0 additions & 1 deletion deployment/DevAzureDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"funcAppName": "[toLower(concat(parameters('baseName'), variables('suffix')))]",
"funcStorageName": "[tolower(concat(substring(parameters('baseName'), 0, min(length(parameters('baseName')),16)), 'stg', variables('suffix')))]",
"serverFarmName": "[concat(substring(parameters('baseName'), 0, min(length(parameters('baseName')),14)), '-srv-', variables('suffix'))]",
"repoURL": "https://github.com/KelvinTegelaar/AzValidate.git",
"uniqueResourceNameBase": "[toLower(concat(parameters('baseName'), variables('suffix')))]",
"swaName": "[toLower(concat(parameters('baseName'), '-swa-', variables('suffix')))]"
},
Expand Down
1 change: 0 additions & 1 deletion deployment/DevAzureDeploymentTemplate_regionoptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"funcAppName": "[toLower(concat(parameters('baseName'), variables('suffix')))]",
"funcStorageName": "[tolower(concat(substring(parameters('baseName'), 0, min(length(parameters('baseName')),16)), 'stg', variables('suffix')))]",
"serverFarmName": "[concat(substring(parameters('baseName'), 0, min(length(parameters('baseName')),14)), '-srv-', variables('suffix'))]",
"repoURL": "https://github.com/KelvinTegelaar/AzValidate.git",
"uniqueResourceNameBase": "[toLower(concat(parameters('baseName'), variables('suffix')))]",
"swaName": "[toLower(concat(parameters('baseName'), '-swa-', variables('suffix')))]"
},
Expand Down
2 changes: 1 addition & 1 deletion public/version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.1
4.1.0
2 changes: 1 addition & 1 deletion src/components/layout/AppFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const AppFooter = () => {
</CLink>{' '}
<CLink href="https://rewst.io/">
<CImage src={rewstLogo} alt="Rewst" />
</CLink>
</CLink>{' '}
<CLink href="https://netfriends.com">
<CImage src={netfriends} alt="Netfriends" />
</CLink>
Expand Down
14 changes: 4 additions & 10 deletions src/components/tables/CippTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,16 +505,10 @@ export default function CippTable({
{(massResults.length >= 1 || loopRunning) && (
<CCallout color="info">
{massResults.map((message, idx) => {
return (
<li key={idx}>
{
//if message.data.results is an array, join, else just show the message
message.data?.Results?.length > 1
? message.data?.Results?.join(', ')
: message.data?.Results
}
</li>
)
const results = message.data?.Results
const displayResults = Array.isArray(results) ? results.join(', ') : results

return <li key={`message-${idx}`}>{displayResults}</li>
})}
{loopRunning && (
<li>
Expand Down
7 changes: 7 additions & 0 deletions src/data/standards.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@
"addedComponent": null,
"label": "Disable Basic Authentication"
},
{
"name": "standards.DisableBasicAuthSMTP",
"cat": "Global",
"helpText": "",
"addedComponent": null,
"label": "Disable SMTP Basic Authentication"
},
{
"name": "standards.laps",
"cat": "AAD",
Expand Down
8 changes: 5 additions & 3 deletions src/views/cipp/CIPPSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,13 +766,15 @@ const ExcludedTenantsSettings = () => {
{removeExcludeTenantResult.data?.Results}
</CCallout>
)}
{refreshPermissionsResults.isSuccess && (
{refreshPermissionsResults.isSuccess &&
refreshPermissionsResults.data?.Results &&
Array.isArray(refreshPermissionsResults.data.Results) ? (
<CCallout color="success" dismissible>
{refreshPermissionsResults.data?.Results.map((result, idx) => (
{refreshPermissionsResults.data.Results.map((result, idx) => (
<li key={idx}>{result}</li>
))}
</CCallout>
)}
) : null}
{addExcludeTenantResult.isSuccess && (
<CCallout color="success" dismissible>
{addExcludeTenantResult.data?.Results}
Expand Down
5 changes: 2 additions & 3 deletions src/views/cipp/Setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ const Setup = () => {
<CCol md={6} className="mb-3">
Click the buttons below to refresh your token.
<br /> Remember to login under a account that has been added to the correct GDAP
groups or the group 'AdminAgents'. After confirmation that the refresh is successful,
the token cache must be cleared.
groups and the group 'AdminAgents'.
<br />
{getResults.isUninitialized && genericGetRequest({ path: 'api/ExecListAppId' })}
{getResults.isSuccess && (
Expand Down Expand Up @@ -255,7 +254,7 @@ const Setup = () => {
<CCol md={3}></CCol>
<CCol md={6}>
{usedWizard &&
'You have used the setup wizard. You can close this screen. Setup has been completed. You must execute a clear of the token cache. See the documentation on how to perform this.'}
'You have used the setup wizard. You can close this screen. Setup has been completed.'}
{!usedWizard &&
'You are sending your own Secure Application Model setup to the Keyvault. For security reasons we do not show the keys. Please make sure you have entered the keys correctly.'}
</CCol>
Expand Down
8 changes: 5 additions & 3 deletions src/views/endpoint/autopilot/AutopilotAddDevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Error.propTypes = {

const AddAPDevice = () => {
const [genericPostRequest, postResults] = useLazyGenericPostRequestQuery()
const [autopilotData, setAutopilotdata] = useState(false)
const [autopilotData, setAutopilotdata] = useState([])
const tableColumns = [
{
name: 'serialNumber',
Expand Down Expand Up @@ -74,7 +74,9 @@ const AddAPDevice = () => {
},
]
const valbutton = (value) =>
autopilotData ? undefined : 'You must add at least one device. Did you forget to click add?'
autopilotData.length
? 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 All @@ -90,7 +92,7 @@ const AddAPDevice = () => {
modelName: normalizedData['device model'],
}
})
setAutopilotdata(importdata)
setAutopilotdata([...autopilotData, ...importdata])
// console.log(importdata)
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/tenant/conditional/ConditionalAccess.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Offcanvas = (row, rowIndex, formatExtraData) => {
icon: <FontAwesomeIcon icon={faBook} className="me-2" />,
modalBody: JSON.parse(row.rawjson),
modalType: 'POST',
modalUrl: `/api/AddCATemplate`,
modalUrl: `/api/AddCATemplate?TenantFilter=${tenant.defaultDomainName}`,
modalMessage: 'Are you sure you want to create a template based on this rule?',
},
{
Expand Down
2 changes: 1 addition & 1 deletion version_latest.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.1
4.1.0

0 comments on commit 106823e

Please sign in to comment.