feat: add channel async polling delay toggle

Fixes #5717
Fixes #4244
This commit is contained in:
CaIon
2026-06-24 20:40:10 +08:00
parent 5d943281b5
commit d2dcbc3137
13 changed files with 424 additions and 15 deletions
@@ -3249,6 +3249,31 @@ export function ChannelMutateDrawer({
</FormItem>
)}
/>
<FormField
control={form.control}
name='disable_task_polling_sleep'
render={({ field }) => (
<FormItem className='flex items-center justify-between px-4 py-3'>
<div className='space-y-0.5'>
<FormLabel>
{t('Skip async task polling delay')}
</FormLabel>
<FormDescription>
{t(
'Do not wait one second between polling async tasks for this channel'
)}
</FormDescription>
</div>
<FormControl>
<Switch
checked={field.value}
onCheckedChange={field.onChange}
/>
</FormControl>
</FormItem>
)}
/>
</div>
<FormField