Fleet UI: Change org logo to light background on product and My Device Page (#33639)

This commit is contained in:
RachelElysia 2025-09-30 13:30:55 -04:00 committed by GitHub
parent f283db01b4
commit 8c7b309450
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 2 deletions

View file

@ -137,7 +137,7 @@ const SiteTopNav = ({
const renderNavItem = (navItem: INavItem) => {
const { name, iconName, withParams } = navItem;
const orgLogoURL = config.org_info.org_logo_url;
const orgLogoURL = config.org_info.org_logo_url_light_background;
const active = navItem.location.regex.test(currentPath);
const navItemBaseClass = "site-nav-item";

View file

@ -199,6 +199,7 @@ export interface IDeviceUserResponse {
host: IHostDevice;
license: ILicense;
org_logo_url: string;
org_logo_url_light_background: string;
org_contact_url: string;
disk_encryption_enabled?: boolean;
platform?: HostPlatform;

View file

@ -308,7 +308,7 @@ const DeviceUserPage = ({
const {
host,
license,
org_logo_url: orgLogoURL = "",
org_logo_url_light_background: orgLogoURL = "",
org_contact_url: orgContactURL = "",
global_config: globalConfig = null as IDeviceGlobalConfig | null,
self_service: hasSelfService = false,

View file

@ -21,6 +21,7 @@ export const defaultDeviceHandler = http.get(baseUrl("/device/:token"), () => {
host: createMockHost(),
license: createMockLicense(),
org_logo_url: "",
org_logo_url_light_background: "",
global_config: {
mdm: { enabled_and_configured: false },
},
@ -35,6 +36,7 @@ export const customDeviceHandler = (overrides?: Partial<IDeviceUserResponse>) =>
host: createMockHost(),
license: createMockLicense(),
org_logo_url: "",
org_logo_url_light_background: "",
global_config: {
mdm: { enabled_and_configured: false },
},