mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
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:
parent
89e3cca8b3
commit
8f40ff0953
@ -150,6 +150,7 @@ export { FeatureFlags } from './lib/features/FeatureFlags';
|
||||
export {
|
||||
isMonitoringTabSupportedEnvironment,
|
||||
isEnvironmentSupportMultiTenantConnectionPooling,
|
||||
isEEClassicConsole,
|
||||
} from './lib/utils/proConsole';
|
||||
|
||||
export { isCloudConsole } from './lib/utils/cloudConsole';
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user