Skip to content

Commit fceefbb

Browse files
authored
Merge pull request KelvinTegelaar#33 from KelvinTegelaar/dev
2 parents 1f0d42e + 5db8164 commit fceefbb

File tree

11 files changed

+64
-90
lines changed

11 files changed

+64
-90
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ PORT=3000
22
CHOKIDAR_USEPOLLING=true
33
BROWSER=none
44
GENERATE_SOURCEMAP=false
5-
WDS_SOCKET_PORT=0
5+
WDS_SOCKET_PORT=3000

.vscode/cert.crt

Lines changed: 0 additions & 23 deletions
This file was deleted.

.vscode/key.key

Lines changed: 0 additions & 28 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,29 @@
1010
},
1111
{
1212
"command": "npm run start-swa",
13-
"name": "Run emulator",
13+
"name": "Run Emulator",
1414
"request": "launch",
1515
"type": "node-terminal"
1616
},
1717
{
1818
"command": "npm start",
19-
"name": "Run frontend",
19+
"name": "Run Frontend",
2020
"request": "launch",
2121
"type": "node-terminal",
22-
"preLaunchTask": "RunAllTasks",
22+
"preLaunchTask": "Run All Tasks",
2323
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"]
2424
},
2525
{
26-
"name": "Launch Edge",
26+
"type": "chrome",
2727
"request": "launch",
28-
"type": "pwa-msedge",
29-
"url": "https://localhost:4280",
30-
"webRoot": "${workspaceFolder}"
31-
},
32-
{
33-
"name": "Attach to Edge",
34-
"port": 9222,
35-
"request": "attach",
36-
"type": "pwa-msedge",
37-
"urlFilter": "https://localhost:4280/*",
38-
"webRoot": "${workspaceFolder}"
28+
"name": "Launch Chrome Debugger",
29+
"url": "http://localhost:4280"
3930
}
4031
],
4132
"compounds": [
4233
{
4334
"name": "Launch it all 🚀",
44-
"configurations": ["Run frontend", "Run emulator"]
35+
"configurations": ["Run Frontend", "Run Emulator"]
4536
}
4637
]
4738
}

.vscode/tasks.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"version": "2.0.0",
33
"tasks": [
44
{
5-
"label": "RunAllTasks",
6-
"dependsOn": ["RunAPI", "RunAzurite"]
5+
"label": "Run All Tasks",
6+
"dependsOn": ["Run API", "Run Azurite"]
77
},
88
{
9-
"label": "RunAzurite",
9+
"label": "Run Azurite",
1010
"type": "shell",
11-
"command": "azurite",
11+
"command": "azurite --location ../",
1212
"isBackground": true,
1313
"problemMatcher": {
1414
"pattern": [
@@ -27,7 +27,7 @@
2727
}
2828
},
2929
{
30-
"label": "RunAPI",
30+
"label": "Run API",
3131
"type": "shell",
3232
"command": "func start --verbose",
3333
"isBackground": true,

package-lock.json

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"changelog": "auto-changelog --starting-version 3.0.0 --commit-limit false --hide-credit",
1818
"eject": "react-scripts eject",
1919
"lint": "eslint \"src/**/*.js\"",
20-
"start": "set HTTPS=true&&set SSL_CRT_FILE=./.vscode/cert.crt&&set SSL_KEY_FILE=./.vscode/key.key&&react-scripts start",
20+
"start": "react-scripts start",
2121
"test": "react-scripts test",
2222
"test:cov": "npm test -- --coverage --watchAll=false",
2323
"test:debug": "react-scripts --inspect-brk test --runInBand",
24-
"start-swa": "swa start --ssl --ssl-cert ./.vscode/cert.crt --ssl-key ./.vscode/key.key --swa-config-location .vscode https://localhost:3000 --api-location http://localhost:7071",
24+
"start-swa": "swa start --swa-config-location .vscode http://127.0.0.1:3000 --api-location http://localhost:7071",
2525
"prepare": "husky install"
2626
},
2727
"config": {
@@ -92,7 +92,7 @@
9292
"prettier": "2.4.1",
9393
"react-scripts": "^5.0.0",
9494
"redux-immutable-state-invariant": "^2.1.0",
95-
"sass": "^1.44",
95+
"sass": "^1.64.2",
9696
"stylelint": "^14.3.0",
9797
"stylelint-config-sass-guidelines": "^9.0.1",
9898
"stylelint-order": "^5.0.0"

src/views/email-exchange/administration/EditMailboxPermissions.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ const MailboxPermissions = () => {
122122
RemoveFullAccess: values.RemoveFullAccess ? values.RemoveFullAccess : null,
123123
AddSendAs: values.AddSendAs ? values.AddSendAs : null,
124124
RemoveSendAs: values.RemoveSendAs ? values.RemoveSendAs : null,
125+
AddSendOnBehalf: values.AddSendOnBehalf ? values.AddSendOnBehalf : null,
126+
RemoveSendOnBehalf: values.RemoveSendOnBehalf ? values.RemoveSendOnBehalf : null,
125127
}
126128
//window.alert(JSON.stringify(shippedValues))
127129
genericPostRequest({ path: '/api/ExecEditMailboxPermissions', values: shippedValues })
@@ -250,6 +252,34 @@ const MailboxPermissions = () => {
250252
/>
251253
{usersError && <span>Failed to load list of users</span>}
252254
</CCol>
255+
<CCol md={12}>
256+
<RFFSelectSearch
257+
multi={true}
258+
label="Add Send On Behalf permissions"
259+
disabled={formDisabled}
260+
values={users?.map((user) => ({
261+
value: user.mail,
262+
name: `${user.displayName} - ${user.mail} `,
263+
}))}
264+
placeholder={!usersIsFetching ? 'Select user' : 'Loading...'}
265+
name="AddSendOnBehalf"
266+
/>
267+
{usersError && <span>Failed to load list of users</span>}
268+
</CCol>
269+
<CCol md={12}>
270+
<RFFSelectSearch
271+
multi={true}
272+
label="Remove Send On Behalf permissions"
273+
disabled={formDisabled}
274+
values={users?.map((user) => ({
275+
value: user.mail,
276+
name: `${user.displayName} - ${user.mail} `,
277+
}))}
278+
placeholder={!usersIsFetching ? 'Select user' : 'Loading...'}
279+
name="RemoveSendOnBehalf"
280+
/>
281+
{usersError && <span>Failed to load list of users</span>}
282+
</CCol>
253283
</CRow>
254284
<CRow className="mb-3">
255285
<CCol md={6}>

src/views/endpoint/applications/ApplicationsAddChocoApp.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ const ApplyStandard = () => {
284284
Disable Restart: {props.values.DisableRestart ? 'Yes' : 'No'}
285285
</CListGroupItem>
286286
<CListGroupItem className="d-flex justify-content-between align-items-center">
287-
Assign to: {props.values.AssignTo}
287+
Assign to:
288+
{props.values.AssignTo == 'on' ? ' None' : ` ${props.values.AssignTo}`}
288289
</CListGroupItem>
289290
</CListGroup>
290291
</CCol>

src/views/endpoint/intune/MEMListPolicyTemplates.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ const AutopilotListTemplates = () => {
6868
const columns = [
6969
{
7070
name: 'Display Name',
71-
selector: (row) => row['Displayname'],
71+
selector: (row) => row['displayName'],
7272
sortable: true,
73-
cell: (row) => CellTip(row['Displayname']),
73+
cell: (row) => CellTip(row['displayName']),
7474
exportSelector: 'Displayname',
7575
minWidth: '400px',
7676
maxWidth: '400px',
7777
},
7878
{
7979
name: 'Description',
80-
selector: (row) => row['Description'],
80+
selector: (row) => row['description'],
8181
sortable: true,
82-
cell: (row) => CellTip(row['Description']),
82+
cell: (row) => CellTip(row['description']),
8383
exportSelector: 'Description',
8484
minWidth: '400px',
8585
maxWidth: '400px',
@@ -124,7 +124,7 @@ const AutopilotListTemplates = () => {
124124
<CippDatatable
125125
keyField="id"
126126
reportName={`${tenant?.defaultDomainName}-MEMPolicyTemplates-List`}
127-
path="/api/ListIntuneTemplates"
127+
path="/api/ListIntuneTemplates?View=true"
128128
columns={columns}
129129
params={{ TenantFilter: tenant?.defaultDomainName }}
130130
/>

0 commit comments

Comments
 (0)