mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Support bundles: small UX improvements (#63277)
support bundle ux improvements
This commit is contained in:
@@ -66,20 +66,22 @@ export const SupportBundlesCreateUnconnected = ({
|
||||
{({ register, errors }) => {
|
||||
return (
|
||||
<>
|
||||
{collectors.map((component) => {
|
||||
return (
|
||||
<Field key={component.uid}>
|
||||
<Checkbox
|
||||
{...register(component.uid)}
|
||||
label={component.displayName}
|
||||
id={component.uid}
|
||||
description={component.description}
|
||||
defaultChecked={component.default}
|
||||
disabled={component.includedByDefault}
|
||||
/>
|
||||
</Field>
|
||||
);
|
||||
})}
|
||||
{[...collectors]
|
||||
.sort((a, b) => a.displayName.localeCompare(b.displayName))
|
||||
.map((component) => {
|
||||
return (
|
||||
<Field key={component.uid}>
|
||||
<Checkbox
|
||||
{...register(component.uid)}
|
||||
label={component.displayName}
|
||||
id={component.uid}
|
||||
description={component.description}
|
||||
defaultChecked={component.default}
|
||||
disabled={component.includedByDefault}
|
||||
/>
|
||||
</Field>
|
||||
);
|
||||
})}
|
||||
<HorizontalGroup>
|
||||
<Button type="submit">Create</Button>
|
||||
<LinkButton href="/support-bundles" variant="secondary">
|
||||
|
||||
Reference in New Issue
Block a user