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:
Noah Talerman 2021-12-01 14:17:35 -05:00 committed by GitHub
parent 79e046182a
commit ce15a8189f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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>
</>

View file

@ -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;
}