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
validators: {required: "Select an assignment intent"},
92
+
helperText:
93
+
"Available assigns to Company Portal, Required installs automatically, Uninstall removes the app, Available without enrollment exposes it without device enrollment.",
94
+
},
95
+
{
96
+
type: "radio",
97
+
name: "assignmentMode",
98
+
label: "Assignment mode",
99
+
options: assignmentModeOptions,
100
+
defaultValue: "replace",
101
+
helperText:
102
+
"Replace will overwrite existing assignments. Append keeps current assignments and adds/overwrites only for the selected groups/intents.",
103
+
},
104
+
...getAssignmentFilterFields(),
105
+
];
106
+
65
107
constactions=[
66
108
{
67
109
label: "Assign to All Users",
68
110
type: "POST",
69
111
url: "/api/ExecAssignApp",
70
-
fields: [
71
-
{
72
-
type: "radio",
73
-
name: "Intent",
74
-
label: "Assignment intent",
75
-
options: assignmentIntentOptions,
76
-
defaultValue: "Required",
77
-
validators: {required: "Select an assignment intent"},
78
-
helperText:
79
-
"Available assigns to Company Portal, Required installs automatically, Uninstall removes the app, Available without enrollment exposes it without device enrollment.",
80
-
},
81
-
{
82
-
type: "radio",
83
-
name: "assignmentMode",
84
-
label: "Assignment mode",
85
-
options: assignmentModeOptions,
86
-
defaultValue: "replace",
87
-
helperText:
88
-
"Replace will overwrite existing assignments. Append keeps current assignments and adds/overwrites only for the selected groups/intents.",
confirmText: 'Are you sure you want to assign "[displayName]" to all users?',
107
119
icon: <UserIcon/>,
108
120
color: "info",
@@ -111,42 +123,12 @@ const Page = () => {
111
123
label: "Assign to All Devices",
112
124
type: "POST",
113
125
url: "/api/ExecAssignApp",
114
-
fields: [
115
-
{
116
-
type: "radio",
117
-
name: "Intent",
118
-
label: "Assignment intent",
119
-
options: assignmentIntentOptions,
120
-
defaultValue: "Required",
121
-
validators: {required: "Select an assignment intent"},
122
-
helperText:
123
-
"Available assigns to Company Portal, Required installs automatically, Uninstall removes the app, Available without enrollment exposes it without device enrollment.",
124
-
},
125
-
{
126
-
type: "radio",
127
-
name: "assignmentMode",
128
-
label: "Assignment mode",
129
-
options: assignmentModeOptions,
130
-
defaultValue: "replace",
131
-
helperText:
132
-
"Replace will overwrite existing assignments. Append keeps current assignments and adds/overwrites only for the selected groups/intents.",
confirmText: 'Are you sure you want to assign "[displayName]" to all devices?',
151
133
icon: <LaptopMac/>,
152
134
color: "info",
@@ -155,42 +137,12 @@ const Page = () => {
155
137
label: "Assign Globally (All Users / All Devices)",
156
138
type: "POST",
157
139
url: "/api/ExecAssignApp",
158
-
fields: [
159
-
{
160
-
type: "radio",
161
-
name: "Intent",
162
-
label: "Assignment intent",
163
-
options: assignmentIntentOptions,
164
-
defaultValue: "Required",
165
-
validators: {required: "Select an assignment intent"},
166
-
helperText:
167
-
"Available assigns to Company Portal, Required installs automatically, Uninstall removes the app, Available without enrollment exposes it without device enrollment.",
168
-
},
169
-
{
170
-
type: "radio",
171
-
name: "assignmentMode",
172
-
label: "Assignment mode",
173
-
options: assignmentModeOptions,
174
-
defaultValue: "replace",
175
-
helperText:
176
-
"Replace will overwrite existing assignments. Append keeps current assignments and adds/overwrites only for the selected groups/intents.",
0 commit comments