mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Fleet UI: Change org logo to light background on product and My Device Page (#33639)
This commit is contained in:
parent
f283db01b4
commit
8c7b309450
4 changed files with 5 additions and 2 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue