ui: flip vis toggle

This commit is contained in:
nick-delirium 2025-05-13 13:56:24 +02:00
parent f742e6fff5
commit 73a3bdc0be
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
2 changed files with 4 additions and 3 deletions

View file

@ -10,6 +10,7 @@ import { Loader } from 'UI';
import APIClient from './api_client';
import * as routes from './routes';
import { debounceCall } from '@/utils';
import { hasAi } from './utils/split-utils';
const components: any = {
SessionPure: lazy(() => import('Components/Session/Session')),
@ -273,12 +274,12 @@ function PrivateRoutes() {
path={withSiteId(LIVE_SESSION_PATH, siteIdList)}
component={enhancedComponents.LiveSession}
/>
<Route
{hasAi ? <Route
exact
strict
path={withSiteId(KAI_PATH, siteIdList)}
component={enhancedComponents.Kai}
/>
/> : null}
{Object.entries(routes.redirects).map(([fr, to]) => (
<Redirect key={fr} exact strict from={fr} to={to} />
))}

View file

@ -2,4 +2,4 @@
* can be overwritten in saas or ee editions
* */
export const hasAi = true //DEBUG false;
export const hasAi = false;