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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user