diff options
author | 2022-11-07 06:27:57 +0530 | |
---|---|---|
committer | 2022-11-07 00:57:57 +0000 | |
commit | dd238ae7949e72e3b90235f56e14686cc5231f34 (patch) | |
tree | 4f63ef38367c9aacfe39028a68a74705bb8954fa /src/components/settings/services/EditServiceForm.js | |
parent | Transform tray & menu files to typescript (#740) (diff) | |
download | ferdium-app-dd238ae7949e72e3b90235f56e14686cc5231f34.tar.gz ferdium-app-dd238ae7949e72e3b90235f56e14686cc5231f34.tar.zst ferdium-app-dd238ae7949e72e3b90235f56e14686cc5231f34.zip |
Remove duplicated Toggle.js component (#741)
Diffstat (limited to 'src/components/settings/services/EditServiceForm.js')
-rw-r--r-- | src/components/settings/services/EditServiceForm.js | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/components/settings/services/EditServiceForm.js b/src/components/settings/services/EditServiceForm.js index eeb9ef54d..30a78c807 100644 --- a/src/components/settings/services/EditServiceForm.js +++ b/src/components/settings/services/EditServiceForm.js | |||
@@ -342,22 +342,22 @@ class EditServiceForm extends Component { | |||
342 | <div className="settings__options"> | 342 | <div className="settings__options"> |
343 | <div className="settings__settings-group"> | 343 | <div className="settings__settings-group"> |
344 | <H3>{intl.formatMessage(messages.headlineNotifications)}</H3> | 344 | <H3>{intl.formatMessage(messages.headlineNotifications)}</H3> |
345 | <Toggle field={form.$('isNotificationEnabled')} /> | 345 | <Toggle {...form.$('isNotificationEnabled').bind()} /> |
346 | <Toggle field={form.$('isMuted')} /> | 346 | <Toggle {...form.$('isMuted').bind()} /> |
347 | <p className="settings__help indented__help"> | 347 | <p className="settings__help indented__help"> |
348 | {intl.formatMessage(messages.isMutedInfo)} | 348 | {intl.formatMessage(messages.isMutedInfo)} |
349 | </p> | 349 | </p> |
350 | <Toggle field={form.$('isMediaBadgeEnabled')} /> | 350 | <Toggle {...form.$('isMediaBadgeEnabled').bind()} /> |
351 | </div> | 351 | </div> |
352 | 352 | ||
353 | <div className="settings__settings-group"> | 353 | <div className="settings__settings-group"> |
354 | <H3>{intl.formatMessage(messages.headlineBadges)}</H3> | 354 | <H3>{intl.formatMessage(messages.headlineBadges)}</H3> |
355 | <Toggle field={form.$('isBadgeEnabled')} /> | 355 | <Toggle {...form.$('isBadgeEnabled').bind()} /> |
356 | {recipe.hasIndirectMessages && | 356 | {recipe.hasIndirectMessages && |
357 | form.$('isBadgeEnabled').value && ( | 357 | form.$('isBadgeEnabled').value && ( |
358 | <> | 358 | <> |
359 | <Toggle | 359 | <Toggle |
360 | field={form.$('isIndirectMessageBadgeEnabled')} | 360 | {...form.$('isIndirectMessageBadgeEnabled').bind()} |
361 | /> | 361 | /> |
362 | <p className="settings__help indented__help"> | 362 | <p className="settings__help indented__help"> |
363 | {intl.formatMessage(messages.indirectMessageInfo)} | 363 | {intl.formatMessage(messages.indirectMessageInfo)} |
@@ -365,19 +365,21 @@ class EditServiceForm extends Component { | |||
365 | </> | 365 | </> |
366 | )} | 366 | )} |
367 | {recipe.allowFavoritesDelineationInUnreadCount && ( | 367 | {recipe.allowFavoritesDelineationInUnreadCount && ( |
368 | <Toggle field={form.$('onlyShowFavoritesInUnreadCount')} /> | 368 | <Toggle |
369 | {...form.$('onlyShowFavoritesInUnreadCount').bind()} | ||
370 | /> | ||
369 | )} | 371 | )} |
370 | </div> | 372 | </div> |
371 | 373 | ||
372 | <div className="settings__settings-group"> | 374 | <div className="settings__settings-group"> |
373 | <H3>{intl.formatMessage(messages.headlineGeneral)}</H3> | 375 | <H3>{intl.formatMessage(messages.headlineGeneral)}</H3> |
374 | <Toggle field={form.$('isEnabled')} /> | 376 | <Toggle {...form.$('isEnabled').bind()} /> |
375 | <Toggle field={form.$('isHibernationEnabled')} /> | 377 | <Toggle {...form.$('isHibernationEnabled').bind()} /> |
376 | <p className="settings__help indented__help"> | 378 | <p className="settings__help indented__help"> |
377 | {intl.formatMessage(messages.isHibernationEnabledInfo)} | 379 | {intl.formatMessage(messages.isHibernationEnabledInfo)} |
378 | </p> | 380 | </p> |
379 | <Toggle field={form.$('isWakeUpEnabled')} /> | 381 | <Toggle {...form.$('isWakeUpEnabled').bind()} /> |
380 | <Toggle field={form.$('trapLinkClicks')} /> | 382 | <Toggle {...form.$('trapLinkClicks').bind()} /> |
381 | {/* TODO: Need to figure out how to effect this change without a reload of the recipe */} | 383 | {/* TODO: Need to figure out how to effect this change without a reload of the recipe */} |
382 | <p className="settings__help indented__help"> | 384 | <p className="settings__help indented__help"> |
383 | {intl.formatMessage(messages.serviceReloadRequired)} | 385 | {intl.formatMessage(messages.serviceReloadRequired)} |
@@ -386,7 +388,7 @@ class EditServiceForm extends Component { | |||
386 | 388 | ||
387 | <div className="settings__settings-group"> | 389 | <div className="settings__settings-group"> |
388 | <H3>{intl.formatMessage(messages.headlineAppearance)}</H3> | 390 | <H3>{intl.formatMessage(messages.headlineAppearance)}</H3> |
389 | <Toggle field={form.$('isDarkModeEnabled')} /> | 391 | <Toggle {...form.$('isDarkModeEnabled').bind()} /> |
390 | {form.$('isDarkModeEnabled').value && ( | 392 | {form.$('isDarkModeEnabled').value && ( |
391 | <> | 393 | <> |
392 | <H3> | 394 | <H3> |
@@ -399,7 +401,7 @@ class EditServiceForm extends Component { | |||
399 | <Slider field={form.$('darkReaderSepia')} /> | 401 | <Slider field={form.$('darkReaderSepia')} /> |
400 | </> | 402 | </> |
401 | )} | 403 | )} |
402 | <Toggle field={form.$('isProgressbarEnabled')} /> | 404 | <Toggle {...form.$('isProgressbarEnabled').bind()} /> |
403 | </div> | 405 | </div> |
404 | </div> | 406 | </div> |
405 | <div className="service-icon"> | 407 | <div className="service-icon"> |
@@ -429,7 +431,7 @@ class EditServiceForm extends Component { | |||
429 | {intl.formatMessage(messages.headlineProxy)} | 431 | {intl.formatMessage(messages.headlineProxy)} |
430 | <span className="badge badge--success">beta</span> | 432 | <span className="badge badge--success">beta</span> |
431 | </H3> | 433 | </H3> |
432 | <Toggle field={form.$('proxy.isEnabled')} /> | 434 | <Toggle {...form.$('proxy.isEnabled').bind()} /> |
433 | {form.$('proxy.isEnabled').value && ( | 435 | {form.$('proxy.isEnabled').value && ( |
434 | <> | 436 | <> |
435 | <div className="grid"> | 437 | <div className="grid"> |