CPS-861 show hasura ee logo for ee classic consoles

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9093
GitOrigin-RevId: f48d8f843d3a88d04dd8fd5060cad055b43950bf
This commit is contained in:
Mihir A Khandekar 2023-05-09 22:47:20 +05:30 committed by hasura-bot
parent 89e3cca8b3
commit 8f40ff0953
3 changed files with 7 additions and 1 deletions

View File

@ -150,6 +150,7 @@ export { FeatureFlags } from './lib/features/FeatureFlags';
export {
isMonitoringTabSupportedEnvironment,
isEnvironmentSupportMultiTenantConnectionPooling,
isEEClassicConsole,
} from './lib/utils/proConsole';
export { isCloudConsole } from './lib/utils/cloudConsole';

View File

@ -48,3 +48,7 @@ export const isEnvironmentSupportMultiTenantConnectionPooling = (
export const isImportFromOpenAPIEnabled = isProConsole;
export const isDynamicDBRoutingEnabled = isProConsole;
export const isCachingEnabled = isProConsole;
export const isEEClassicConsole = () => {
return window.__env.eeMode || false;
};

View File

@ -34,6 +34,7 @@ import {
InitializeTelemetry,
telemetryUserEventsTracker,
Analytics,
isEEClassicConsole,
} from '@hasura/console-legacy-ce';
import {
@ -554,7 +555,7 @@ class Main extends React.Component {
<WithEELiteAccess globals={globals}>
{({ access }) => {
const getLogoSrc = () => {
if (this.isEnterpriseProject()) {
if (this.isEnterpriseProject() || isEEClassicConsole()) {
return EELogo;
}
if (access === 'active') {