Add toggle for plain text message to telegram notification adapter (#299)

This commit is contained in:
Adrian Bartnik
2026-04-16 12:05:57 +02:00
committed by GitHub
parent e2d10d179e
commit c384781137
2 changed files with 52 additions and 13 deletions

View File

@@ -156,14 +156,21 @@ export default function NotificationAdapterMutator({
return (
<Form key={key}>
{uiElement.type === 'boolean' ? (
<div style={{ display: 'flex', alignItems: 'center', gap: '16px' }}>
<Switch
checked={uiElement.value || false}
onChange={(checked) => {
setValue(selectedAdapter, uiElement, key, checked);
}}
/>
{uiElement.label}
<div>
<div style={{ display: 'flex', alignItems: 'center', gap: '16px' }}>
<Switch
checked={uiElement.value || false}
onChange={(checked) => {
setValue(selectedAdapter, uiElement, key, checked);
}}
/>
{uiElement.label}
</div>
{uiElement.description && (
<div className="semi-form-field-extra" style={{ marginTop: '4px' }}>
{uiElement.description}
</div>
)}
</div>
) : (
<Form.Input