Skip to content

Commit bf5aaaf

Browse files
committed
fix: add rtc feature-flag in Labs UI
1 parent 2b8e2fc commit bf5aaaf

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

frontend/src/components/app-config/user-config-form.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,6 +1314,30 @@ export const UserConfigForm: React.FC = () => {
13141314
</div>
13151315
)}
13161316
/>
1317+
<FormField
1318+
control={form.control}
1319+
name="experimental.rtc_v2"
1320+
render={({ field }) => (
1321+
<div className="flex flex-col gap-y-1">
1322+
<FormItem className={formItemClasses}>
1323+
<FormLabel className="font-normal">
1324+
Real-Time Collaboration
1325+
</FormLabel>
1326+
<FormControl>
1327+
<Checkbox
1328+
data-testid="rtc-checkbox"
1329+
checked={field.value === true}
1330+
onCheckedChange={field.onChange}
1331+
/>
1332+
</FormControl>
1333+
</FormItem>
1334+
<FormDescription>
1335+
Enable experimental real-time collaboration. This change
1336+
requires a page refresh to take effect.
1337+
</FormDescription>
1338+
</div>
1339+
)}
1340+
/>
13171341
</SettingGroup>
13181342
);
13191343
}

0 commit comments

Comments
 (0)