$[`${i18nPrefix}.method`], { ns: 'workflow' })}
value={inputs.method}
disabled={readOnly}
onChange={handleMethodChange}
/>
$[`${i18nPrefix}.webhookUrlPlaceholder`], {
ns: 'workflow',
})}
readOnly
onCopy={() => {
toast.success(t(($) => $[`${i18nPrefix}.urlCopied`], { ns: 'workflow' }))
}}
/>
{inputs.webhook_debug_url && (
$[`${i18nPrefix}.debugUrlCopy`], { ns: 'workflow' })}
className="flex cursor-pointer gap-1.5 rounded-lg px-1 py-1.5 text-left transition-colors"
style={{ width: '368px', height: '38px' }}
onClick={() => {
copy(inputs.webhook_debug_url || '')
setDebugUrlCopied(true)
setTimeout(() => setDebugUrlCopied(false), 2000)
}}
>
{t(($) => $[`${i18nPrefix}.debugUrlTitle`], { ns: 'workflow' })}
{inputs.webhook_debug_url}
}
/>
{debugUrlCopied
? t(($) => $[`${i18nPrefix}.debugUrlCopied`], { ns: 'workflow' })
: t(($) => $[`${i18nPrefix}.debugUrlCopy`], { ns: 'workflow' })}
{isPrivateOrLocalAddress(inputs.webhook_debug_url) && (
{t(($) => $[`${i18nPrefix}.debugUrlPrivateAddressWarning`], { ns: 'workflow' })}
)}
)}