You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
confirmText: "Are you sure you want to assign this app to all users?",
45
+
fields: [
46
+
{
47
+
type: "radio",
48
+
name: "Intent",
49
+
label: "Assignment intent",
50
+
options: assignmentIntentOptions,
51
+
defaultValue: "Required",
52
+
validators: {required: "Select an assignment intent"},
53
+
helperText:
54
+
"Available assigns to Company Portal, Required installs automatically, Uninstall removes the app, Available without enrollment exposes it without device enrollment.",
55
+
},
56
+
{
57
+
type: "radio",
58
+
name: "assignmentMode",
59
+
label: "Assignment mode",
60
+
options: assignmentModeOptions,
61
+
defaultValue: "replace",
62
+
helperText:
63
+
"Replace will overwrite existing assignments. Append keeps current assignments and adds/overwrites only for the selected groups/intents.",
64
+
},
65
+
],
66
+
confirmText: 'Are you sure you want to assign "[displayName]" to all users?',
26
67
icon: <UserIcon/>,
27
68
color: "info",
28
69
},
@@ -34,7 +75,28 @@ const Page = () => {
34
75
AssignTo: "!AllDevices",
35
76
ID: "id",
36
77
},
37
-
confirmText: "Are you sure you want to assign this app to all devices?",
78
+
fields: [
79
+
{
80
+
type: "radio",
81
+
name: "Intent",
82
+
label: "Assignment intent",
83
+
options: assignmentIntentOptions,
84
+
defaultValue: "Required",
85
+
validators: {required: "Select an assignment intent"},
86
+
helperText:
87
+
"Available assigns to Company Portal, Required installs automatically, Uninstall removes the app, Available without enrollment exposes it without device enrollment.",
88
+
},
89
+
{
90
+
type: "radio",
91
+
name: "assignmentMode",
92
+
label: "Assignment mode",
93
+
options: assignmentModeOptions,
94
+
defaultValue: "replace",
95
+
helperText:
96
+
"Replace will overwrite existing assignments. Append keeps current assignments and adds/overwrites only for the selected groups/intents.",
97
+
},
98
+
],
99
+
confirmText: 'Are you sure you want to assign "[displayName]" to all devices?',
38
100
icon: <LaptopMac/>,
39
101
color: "info",
40
102
},
@@ -43,21 +105,112 @@ const Page = () => {
43
105
type: "POST",
44
106
url: "/api/ExecAssignApp",
45
107
data: {
46
-
AssignTo: "!Both",
108
+
AssignTo: "!AllDevicesAndUsers",
47
109
ID: "id",
48
110
},
49
-
confirmText: "Are you sure you want to assign this app to all users and devices?",
111
+
fields: [
112
+
{
113
+
type: "radio",
114
+
name: "Intent",
115
+
label: "Assignment intent",
116
+
options: assignmentIntentOptions,
117
+
defaultValue: "Required",
118
+
validators: {required: "Select an assignment intent"},
119
+
helperText:
120
+
"Available assigns to Company Portal, Required installs automatically, Uninstall removes the app, Available without enrollment exposes it without device enrollment.",
121
+
},
122
+
{
123
+
type: "radio",
124
+
name: "assignmentMode",
125
+
label: "Assignment mode",
126
+
options: assignmentModeOptions,
127
+
defaultValue: "replace",
128
+
helperText:
129
+
"Replace will overwrite existing assignments. Append keeps current assignments and adds/overwrites only for the selected groups/intents.",
130
+
},
131
+
],
132
+
confirmText: 'Are you sure you want to assign "[displayName]" to all users and devices?',
50
133
icon: <GlobeAltIcon/>,
51
134
color: "info",
52
135
},
136
+
{
137
+
label: "Assign to Custom Group",
138
+
type: "POST",
139
+
url: "/api/ExecAssignApp",
140
+
icon: <UserGroupIcon/>,
141
+
color: "info",
142
+
confirmText: 'Select the target groups and intent for "[displayName]".',
143
+
fields: [
144
+
{
145
+
type: "autoComplete",
146
+
name: "groupTargets",
147
+
label: "Group(s)",
148
+
multiple: true,
149
+
creatable: false,
150
+
allowResubmit: true,
151
+
validators: {required: "Please select at least one group"},
validators: {required: "Select an assignment intent"},
179
+
helperText:
180
+
"Available assigns to Company Portal, Required installs automatically, Uninstall removes the app, Available without enrollment exposes it without device enrollment.",
181
+
},
182
+
{
183
+
type: "radio",
184
+
name: "assignmentMode",
185
+
label: "Assignment mode",
186
+
options: assignmentModeOptions,
187
+
defaultValue: "replace",
188
+
helperText:
189
+
"Replace will overwrite existing assignments. Append keeps current assignments and adds/overwrites only for the selected groups/intents.",
0 commit comments