Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/33136-custom-organization-logo-bug
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Changed display logic for the organization logo component on the My Device page to prevent flickering.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ import PoliciesCard from "../cards/Policies";
import InfoModal from "./InfoModal";
import { getErrorMessage, hasRemainingSetupSteps } from "./helpers";

import FleetIcon from "../../../../../assets/images/[email protected]";
import PolicyDetailsModal from "../cards/Policies/HostPoliciesTable/PolicyDetailsModal";
import AutoEnrollMdmModal from "./AutoEnrollMdmModal";
import ManualEnrollMdmModal from "./ManualEnrollMdmModal";
Expand Down Expand Up @@ -749,7 +748,11 @@ const DeviceUserPage = ({
<li className="site-nav-item dup-org-logo" key="dup-org-logo">
<div className="site-nav-item__logo-wrapper">
<div className="site-nav-item__logo">
<OrgLogoIcon className="logo" src={orgLogoURL || FleetIcon} />
{isLoadingHost ? (
<Spinner />
) : (
<OrgLogoIcon className="logo" src={orgLogoURL} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not want to still back to FleetIcon if there's no logo URL?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fine, if no src is provided then the component goes through its onError handler which sets the source to a default fleet logo ([email protected]).

)}
</div>
</div>
</li>
Expand Down
Loading