diff --git a/src/components/agenda/AgendaLayout.svelte b/src/components/agenda/AgendaLayout.svelte index 10003c63..97201c0d 100644 --- a/src/components/agenda/AgendaLayout.svelte +++ b/src/components/agenda/AgendaLayout.svelte @@ -9,6 +9,7 @@ import type { IEvent, IPerformance } from '../../model/event'; import { Submission } from '../../enums/submission-type'; import type { Cv } from '$lib/types/cv'; + import {featureIsToggledOn} from "../../featureFlagging/common"; export let submission: ISubmission; export let event: IEvent; @@ -22,6 +23,10 @@ }; const authorsLength = submission?.authors?.length || 0; + + if (featureIsToggledOn("debuglog")) { + console.log({submission, event, performance, cvs, authorsLength}); + }
diff --git a/src/featureFlagging/frontend.ts b/src/featureFlagging/frontend.ts index d2f8ac11..010d248e 100644 --- a/src/featureFlagging/frontend.ts +++ b/src/featureFlagging/frontend.ts @@ -16,14 +16,17 @@ import {parseFlag} from "./common"; */ export interface FrontendFeatureToggles { performances: boolean + debuglog: boolean }; export type FrontendFeatureToggleName = keyof FrontendFeatureToggles; export const flags: FrontendFeatureToggles = { - performances: false + performances: false, + debuglog: false } export const toggleByURIParams = (searchParams: URLSearchParams) => { flags.performances = parseFlag(searchParams.get("performances")); + flags.debuglog = parseFlag(searchParams.get("debuglog")); }