Fleet UI: Small bug fix tooltip position (#11509)

This commit is contained in:
RachelElysia 2023-05-03 13:08:17 -04:00 committed by GitHub
parent 619be587ac
commit ae0ef2a00f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View file

@ -0,0 +1 @@
- Small style change (tooltip on host details software positioned above to not cover next line of software info)

View file

@ -120,7 +120,6 @@ const setOptionsAsDisabled = (
};
let optionsToDisable: IDropdownOption[] = [];
console.log("options to disable: ", optionsToDisable);
if (!isHostOnline) {
optionsToDisable = optionsToDisable.concat(
options.filter(
@ -128,14 +127,12 @@ const setOptionsAsDisabled = (
)
);
}
console.log("options to disable: ", optionsToDisable);
if (isSandboxMode) {
optionsToDisable = optionsToDisable.concat(
options.filter((option) => option.value === "transfer")
);
}
console.log("options to disable: ", optionsToDisable);
disableOptions(optionsToDisable);
return options;
};

View file

@ -103,6 +103,7 @@ const condenseVulnerabilities = (vulns: string[]): string[] => {
const renderBundleTooltip = (name: string, bundle: string) => (
<span className="name-container">
<TooltipWrapper
position="top"
tipContent={`
<span>
<b>Bundle identifier: </b>