Skip to content

Commit a8bb878

Browse files
authored
Merge pull request #152 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents c685ed9 + 14d7729 commit a8bb878

File tree

3 files changed

+46
-12
lines changed

3 files changed

+46
-12
lines changed

src/components/CippStandards/CippStandardAccordion.jsx

+21-8
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,30 @@ const CippStandardAccordion = ({
159159
{selectedActions && selectedActions?.length > 0 && (
160160
<Stack direction="row" spacing={1} sx={{ my: 0.5 }}>
161161
{selectedActions?.map((action, index) => (
162-
<Chip
163-
key={index}
164-
label={action.label}
165-
color="info"
166-
variant="outlined"
167-
size="small"
168-
sx={{ mr: 1 }}
169-
/>
162+
<>
163+
<Chip
164+
key={index}
165+
label={action.label}
166+
color="info"
167+
variant="outlined"
168+
size="small"
169+
sx={{ mr: 1 }}
170+
/>
171+
<Chip
172+
key={index}
173+
label={standard?.impact}
174+
color={standard?.impact === "High Impact" ? "error" : "info"}
175+
variant="outlined"
176+
size="small"
177+
sx={{ mr: 1 }}
178+
/>
179+
</>
170180
))}
171181
</Stack>
172182
)}
183+
{
184+
//add a chip that shows the impact
185+
}
173186
<Typography variant="body2" color="textSecondary">
174187
{standard.helpText}
175188
</Typography>

src/data/standards.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,14 @@
11131113
"cat": "Exchange Standards",
11141114
"tag": [],
11151115
"helpText": "Enables litigation hold for all UserMailboxes with a valid license.",
1116-
"addedComponent": [],
1116+
"addedComponent": [
1117+
{
1118+
"type": "textField",
1119+
"name": "standards.EnableLitigationHold.days",
1120+
"required": false,
1121+
"label": "Days to apply for litigation hold"
1122+
}
1123+
],
11171124
"label": "Enable Litigation Hold for all users",
11181125
"impact": "Low Impact",
11191126
"impactColour": "info",

src/pages/endpoint/MEM/devices/index.js

+17-3
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ const Page = () => {
128128
GUID: "id",
129129
Action: "windowsDefenderUpdateSignatures",
130130
},
131-
confirmText: "Are you sure you want to update the Windows Defender signatures for this device?",
131+
confirmText:
132+
"Are you sure you want to update the Windows Defender signatures for this device?",
132133
},
133134
{
134135
label: "Generate logs and ship to MEM",
@@ -216,7 +217,8 @@ const Page = () => {
216217
keepUserData: false,
217218
useProtectedWipe: true,
218219
},
219-
confirmText: "Are you sure you want to wipe this device? This will retain enrollment data. Continuing at powerloss may cause boot issues if wipe is interrupted.",
220+
confirmText:
221+
"Are you sure you want to wipe this device? This will retain enrollment data. Continuing at powerloss may cause boot issues if wipe is interrupted.",
220222
},
221223
{
222224
label: "Wipe Device, remove enrollment data, and continue at powerloss",
@@ -230,7 +232,8 @@ const Page = () => {
230232
keepUserData: false,
231233
useProtectedWipe: true,
232234
},
233-
confirmText: "Are you sure you want to wipe this device? This will also remove enrollment data. Continuing at powerloss may cause boot issues if wipe is interrupted.",
235+
confirmText:
236+
"Are you sure you want to wipe this device? This will also remove enrollment data. Continuing at powerloss may cause boot issues if wipe is interrupted.",
234237
},
235238
{
236239
label: "Autopilot Reset",
@@ -245,6 +248,17 @@ const Page = () => {
245248
},
246249
confirmText: "Are you sure you want to Autopilot Reset this device?",
247250
},
251+
{
252+
label: "Delete device",
253+
type: "POST",
254+
icon: <Recycling />,
255+
url: "/api/ExecDeviceAction",
256+
data: {
257+
GUID: "id",
258+
Action: "delete",
259+
},
260+
confirmText: "Are you sure you want to retire this device?",
261+
},
248262
{
249263
label: "Retire device",
250264
type: "POST",

0 commit comments

Comments
 (0)