Fleet UI: Update queries and policies page descriptions (#17080)

This commit is contained in:
RachelElysia
2024-02-22 11:06:29 -05:00
committed by GitHub
parent dfa8695dd5
commit 0d7c7324b1
5 changed files with 9 additions and 26 deletions
+1
View File
@@ -0,0 +1 @@
- Update page descriptions
@@ -574,8 +574,6 @@ const ManagePolicyPage = ({
}`;
};
const showTeamDescription = isPremiumTier && isAnyTeamSelected;
const showInheritedPoliciesButton =
isAnyTeamSelected &&
!isFetchingTeamPolicies &&
@@ -744,14 +742,11 @@ const ManagePolicyPage = ({
)}
</div>
<div className={`${baseClass}__description`}>
{showTeamDescription ? (
<p>Add additional policies for all hosts assigned to this team.</p>
) : (
<p>
Add policies for all of your hosts to see which pass your
organizations standards.
</p>
)}
<p>
{isAnyTeamSelected
? "Detect device health issues for all hosts assigned to this team."
: "Detect device health issues for all hosts."}
</p>
</div>
{renderMainTable()}
{showInheritedPoliciesButton && globalPoliciesCount && (
@@ -51,13 +51,6 @@
margin: 0;
margin-bottom: $pad-xxlarge;
h2 {
text-transform: uppercase;
color: $core-fleet-black;
font-weight: $regular;
font-size: $small;
}
p {
color: $ui-fleet-black-75;
margin: 0;
@@ -461,8 +461,9 @@ const ManageQueriesPage = ({
</div>
<div className={`${baseClass}__description`}>
<p>
Manage and schedule queries to ask questions and collect telemetry
for all hosts{isAnyTeamSelected && " assigned to this team"}.
{isAnyTeamSelected
? "Gather data about all hosts assigned to this team."
: "Gather data about all hosts."}
</p>
</div>
{renderCurrentScopeQueriesTable()}
@@ -39,13 +39,6 @@
&__description {
margin: 0 0 $pad-xxlarge;
h2 {
text-transform: uppercase;
color: $core-fleet-black;
font-weight: $regular;
font-size: $small;
}
p {
color: $ui-fleet-black-75;
margin: 0;