mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
fix: show cache warning to pro-lite console users
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9304 GitOrigin-RevId: 1acd4b070dd89ac83d19229b20d5d5c5c34d8d55
This commit is contained in:
parent
01b54b49b6
commit
81636e0a48
@ -16,6 +16,10 @@ export const isProConsole = (env: ProConsoleEnv) => {
|
||||
return false;
|
||||
};
|
||||
|
||||
export const isProLiteConsole = (env: ProConsoleEnv) => {
|
||||
return env.consoleType === 'pro-lite';
|
||||
};
|
||||
|
||||
// Commented this function so that it's not used
|
||||
// export const isProLiteConsole = (env: ProConsoleEnv) => {
|
||||
// return env.consoleType === 'pro-lite';
|
||||
@ -47,7 +51,9 @@ export const isEnvironmentSupportMultiTenantConnectionPooling = (
|
||||
|
||||
export const isImportFromOpenAPIEnabled = isProConsole;
|
||||
export const isDynamicDBRoutingEnabled = isProConsole;
|
||||
export const isCachingEnabled = isProConsole;
|
||||
// isProConsole or isProLiteConsole
|
||||
export const isCachingEnabled = (env: ProConsoleEnv) =>
|
||||
isProConsole(env) || isProLiteConsole(env);
|
||||
|
||||
export const isEEClassicConsole = () => {
|
||||
return window.__env.eeMode || false;
|
||||
|
Loading…
Reference in New Issue
Block a user