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:
Daniele Cammareri 2023-05-26 08:35:09 +02:00 committed by hasura-bot
parent 01b54b49b6
commit 81636e0a48

View File

@ -16,6 +16,10 @@ export const isProConsole = (env: ProConsoleEnv) => {
return false; return false;
}; };
export const isProLiteConsole = (env: ProConsoleEnv) => {
return env.consoleType === 'pro-lite';
};
// Commented this function so that it's not used // Commented this function so that it's not used
// export const isProLiteConsole = (env: ProConsoleEnv) => { // export const isProLiteConsole = (env: ProConsoleEnv) => {
// return env.consoleType === 'pro-lite'; // return env.consoleType === 'pro-lite';
@ -47,7 +51,9 @@ export const isEnvironmentSupportMultiTenantConnectionPooling = (
export const isImportFromOpenAPIEnabled = isProConsole; export const isImportFromOpenAPIEnabled = isProConsole;
export const isDynamicDBRoutingEnabled = isProConsole; export const isDynamicDBRoutingEnabled = isProConsole;
export const isCachingEnabled = isProConsole; // isProConsole or isProLiteConsole
export const isCachingEnabled = (env: ProConsoleEnv) =>
isProConsole(env) || isProLiteConsole(env);
export const isEEClassicConsole = () => { export const isEEClassicConsole = () => {
return window.__env.eeMode || false; return window.__env.eeMode || false;