diff options
| author | cashmere <cashmere@autistici.org> | 2026-07-27 01:21:02 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-07-27 01:21:02 +0200 |
| commit | f8fdff7f0c1b8efdef9093c932e28e427799d6ef (patch) | |
| tree | 742d003a1464c921e8feb9f2fd5758982a4cc0b6 /apps/web/src/timeline/components/timeline-element.tsx | |
| parent | 8474b96e7d5632d7bd71aef077ab9efe2e4523cc (diff) | |
| download | opencut-f8fdff7f0c1b8efdef9093c932e28e427799d6ef.tar.gz | |
feat: gate sounds/stickers/effects UI behind feature flags
FEATURES in src/features.ts (all false) hides the assets-panel tabs and
views, the clip effects properties tab, and the timeline effects badge.
Existing project data still renders and stays editable (standalone effect
tab, sticker config, renderer nodes untouched).
Diffstat (limited to 'apps/web/src/timeline/components/timeline-element.tsx')
| -rw-r--r-- | apps/web/src/timeline/components/timeline-element.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web/src/timeline/components/timeline-element.tsx b/apps/web/src/timeline/components/timeline-element.tsx index 1b549a15..9dfeab8b 100644 --- a/apps/web/src/timeline/components/timeline-element.tsx +++ b/apps/web/src/timeline/components/timeline-element.tsx @@ -2,6 +2,7 @@ import { createContext, useContext } from "react"; import { useEditor } from "@/editor/use-editor"; +import { FEATURES } from "@/features"; import { useAssetsPanelStore } from "@/components/editor/panels/assets/assets-panel-store"; import { AudioWaveform, WAVEFORM_GAIN_SAMPLE_COUNT } from "./audio-waveform"; import { AudioVolumeLine } from "./audio-volume-line"; @@ -1123,7 +1124,7 @@ function TiledMediaContent({ <MediaElementHeader name={mediaAsset?.name} leading={ - hasElementEffects({ element }) ? ( + FEATURES.effects && hasElementEffects({ element }) ? ( <EffectsButton element={element} track={track} /> ) : null } |
