File tree 10 files changed +23
-46
lines changed
pages/policies/ManagePoliciesPage/components
10 files changed +23
-46
lines changed Original file line number Diff line number Diff line change 2
2
display : flex ;
3
3
justify-content : flex-end ;
4
4
margin-top : $pad-small ;
5
- margin-bottom : $pad-small ;
6
5
margin-left : auto ;
7
6
text-align : right ;
8
7
gap : $pad-large ;
Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ const CalendarEventsModal = ({
295
295
) ;
296
296
} }
297
297
footer = {
298
- < div className = "form-field__help-text" >
298
+ < >
299
299
A calendar event will be created for end users if one of their
300
300
hosts fail any of these policies.{ " " }
301
301
< CustomLink
@@ -304,7 +304,7 @@ const CalendarEventsModal = ({
304
304
newTab
305
305
disableKeyboardNavigation = { ! formData . enabled }
306
306
/>
307
- </ div >
307
+ </ >
308
308
}
309
309
isUpdating = { isUpdating }
310
310
onSubmit = { onUpdateCalendarEvents }
Original file line number Diff line number Diff line change 33
33
margin : 0 ;
34
34
}
35
35
36
- .form-field__help-text {
37
- margin-top : $pad-large ;
38
- }
39
-
40
36
& __hide-main {
41
37
visibility : hidden ;
42
38
}
67
63
// If we're hiding the modal (because the preview is showing), hide the background as well.
68
64
.modal__background :has (.calendar-events-modal.calendar-events-modal__hide-main ) {
69
65
visibility : hidden ;
70
- }
66
+ }
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ const InstallSoftwareModal = ({
288
288
) : null ;
289
289
} }
290
290
footer = {
291
- < p className = "form-field__help-text" >
291
+ < >
292
292
If compatible with the host, the selected software will be
293
293
installed when hosts fail the policy. Host counts will reset
294
294
when new software is selected.{ " " }
@@ -297,7 +297,7 @@ const InstallSoftwareModal = ({
297
297
text = "Learn more"
298
298
newTab
299
299
/>
300
- </ p >
300
+ </ >
301
301
}
302
302
isUpdating = { isUpdating }
303
303
onSubmit = { onUpdateInstallSoftware }
Original file line number Diff line number Diff line change 1
1
.manage-policies-page {
2
2
.install-software-modal {
3
- .form-field__help-text {
4
- font-size : 14px ;
5
- line-height : 21px ;
6
- margin-top : $pad-large ;
7
- }
8
-
9
3
.form-field--dropdown {
10
4
width : 276px ;
11
5
.Select-placeholder {
Original file line number Diff line number Diff line change @@ -370,15 +370,15 @@ const OtherWorkflowsModal = ({
370
370
return item ;
371
371
} }
372
372
footer = {
373
- < p className = { ` ${ baseClass } __help-text` } >
373
+ < >
374
374
The workflow will be triggered when hosts fail these policies.{ " " }
375
375
< CustomLink
376
376
url = "https://www.fleetdm.com/learn-more-about/policy-automations"
377
377
text = "Learn more"
378
378
newTab
379
379
disableKeyboardNavigation = { ! isPolicyAutomationsEnabled }
380
380
/>
381
- </ p >
381
+ </ >
382
382
}
383
383
isUpdating = { isUpdating }
384
384
onSubmit = { onUpdateOtherWorkflows }
Original file line number Diff line number Diff line change 19
19
& __no-integrations a {
20
20
display : block ;
21
21
}
22
-
23
- & __help-text {
24
- @include help-text ;
25
- }
26
22
}
Original file line number Diff line number Diff line change @@ -198,22 +198,20 @@ function PoliciesPaginatedList(
198
198
return (
199
199
< div className = { `${ baseClass } form` } >
200
200
< div className = "form-field" >
201
- < div >
202
- < PaginatedList < IFormPolicy >
203
- ref = { paginatedListRef }
204
- fetchPage = { fetchPage }
205
- fetchCount = { fetchCount }
206
- isSelected = { isSelected }
207
- onToggleItem = { onToggleItem }
208
- renderItemRow = { renderItemRow }
209
- pageSize = { DEFAULT_PAGE_SIZE }
210
- onUpdate = { onUpdate }
211
- disabled = { disabled || gitOpsModeEnabled }
212
- heading = { < span className = { `${ baseClass } __header` } > Policies</ span > }
213
- />
214
- { footer }
215
- </ div >
201
+ < PaginatedList < IFormPolicy >
202
+ ref = { paginatedListRef }
203
+ fetchPage = { fetchPage }
204
+ fetchCount = { fetchCount }
205
+ isSelected = { isSelected }
206
+ onToggleItem = { onToggleItem }
207
+ renderItemRow = { renderItemRow }
208
+ pageSize = { DEFAULT_PAGE_SIZE }
209
+ onUpdate = { onUpdate }
210
+ disabled = { disabled || gitOpsModeEnabled }
211
+ heading = { < span className = { `${ baseClass } __header` } > Policies</ span > }
212
+ />
216
213
</ div >
214
+ { footer && < p className = "form-field__help-text" > { footer } </ p > }
217
215
< div className = "modal-cta-wrap" >
218
216
< GitOpsModeTooltipWrapper
219
217
position = "right"
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ const PolicyRunScriptModal = ({
186
186
) : null ;
187
187
} }
188
188
footer = {
189
- < p className = "form-field__help-text" >
189
+ < >
190
190
If{ " " }
191
191
< TooltipWrapper tipContent = { compatibleTipContent } >
192
192
compatible
@@ -200,7 +200,7 @@ const PolicyRunScriptModal = ({
200
200
text = "Learn more"
201
201
newTab
202
202
/>
203
- </ p >
203
+ </ >
204
204
}
205
205
isUpdating = { isUpdating }
206
206
onSubmit = { onUpdate }
Original file line number Diff line number Diff line change 1
1
.manage-policies-page {
2
2
.policy-run-script-modal {
3
- .form-field__help-text {
4
- font-size : 14px ;
5
- line-height : 21px ;
6
- margin-top : $pad-large ;
7
- }
8
-
9
3
.form-field--dropdown {
10
4
width : 276px ;
11
5
.Select-placeholder {
34
28
justify-content : center ;
35
29
font-size : $small ;
36
30
37
- div {
31
+ div {
38
32
color : $ui-fleet-black-75 ;
39
33
font-size : $xx-small ;
40
34
a {
You can’t perform that action at this time.
0 commit comments