mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Update "Operating sytem" modal on the Host details page (#3167)
- Update the example policy to use a period `.` instead of a comma `,` - Update the secondary button text to use "Close" instead of "Cancel" - Adjust padding
This commit is contained in:
parent
79e046182a
commit
ce15a8189f
2 changed files with 5 additions and 2 deletions
|
|
@ -353,7 +353,7 @@ const HostDetailsPage = ({
|
|||
host?.os_version.lastIndexOf(" ") + 1
|
||||
);
|
||||
const osPolicyLabel = `Is ${operatingSystem}, version ${operatingSystemVersion} installed?`;
|
||||
const osPolicy = `SELECT 1 from os_version WHERE name = '${operatingSystem}' AND major || ',' || minor || '.' || patch = '${operatingSystemVersion}';`;
|
||||
const osPolicy = `SELECT 1 from os_version WHERE name = '${operatingSystem}' AND major || '.' || minor || '.' || patch = '${operatingSystemVersion}';`;
|
||||
|
||||
const aboutData = normalizeEmptyValues(
|
||||
pick(host, [
|
||||
|
|
@ -603,7 +603,7 @@ const HostDetailsPage = ({
|
|||
Create new policy
|
||||
</Button>
|
||||
<Button onClick={() => setShowOSPolicyModal(false)} variant="inverse">
|
||||
Cancel
|
||||
Close
|
||||
</Button>
|
||||
</div>
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -725,6 +725,7 @@
|
|||
}
|
||||
|
||||
&__os-modal-title {
|
||||
padding-right: $pad-medium;
|
||||
font-size: $medium;
|
||||
font-weight: $bold;
|
||||
}
|
||||
|
|
@ -736,6 +737,8 @@
|
|||
font-weight: $bold;
|
||||
}
|
||||
&__os-policy {
|
||||
padding-top: $pad-medium;
|
||||
|
||||
.form-field__label {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue