diff options
author | 2022-11-08 07:40:02 +0530 | |
---|---|---|
committer | 2022-11-08 17:25:27 +0530 | |
commit | 570d26baf9e4ad87a8c0752b5edfb5c441bf9d80 (patch) | |
tree | ee0a0e6bec7d10ec438b5269537905fee80c377b /src/containers/settings/EditSettingsScreen.tsx | |
parent | refactor: remove toggle component's duplicate (diff) | |
download | ferdium-app-570d26baf9e4ad87a8c0752b5edfb5c441bf9d80.tar.gz ferdium-app-570d26baf9e4ad87a8c0752b5edfb5c441bf9d80.tar.zst ferdium-app-570d26baf9e4ad87a8c0752b5edfb5c441bf9d80.zip |
fix: slack issue caused by input TS conversion
Diffstat (limited to 'src/containers/settings/EditSettingsScreen.tsx')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.tsx | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.tsx b/src/containers/settings/EditSettingsScreen.tsx index 91752ad43..f18eb24a7 100644 --- a/src/containers/settings/EditSettingsScreen.tsx +++ b/src/containers/settings/EditSettingsScreen.tsx | |||
@@ -544,26 +544,31 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
544 | label: intl.formatMessage(messages.autoLaunchOnStart), | 544 | label: intl.formatMessage(messages.autoLaunchOnStart), |
545 | value: app.autoLaunchOnStart, | 545 | value: app.autoLaunchOnStart, |
546 | default: DEFAULT_APP_SETTINGS.autoLaunchOnStart, | 546 | default: DEFAULT_APP_SETTINGS.autoLaunchOnStart, |
547 | type: 'checkbox', | ||
547 | }, | 548 | }, |
548 | autoLaunchInBackground: { | 549 | autoLaunchInBackground: { |
549 | label: intl.formatMessage(messages.autoLaunchInBackground), | 550 | label: intl.formatMessage(messages.autoLaunchInBackground), |
550 | value: app.launchInBackground, | 551 | value: app.launchInBackground, |
551 | default: DEFAULT_APP_SETTINGS.autoLaunchInBackground, | 552 | default: DEFAULT_APP_SETTINGS.autoLaunchInBackground, |
553 | type: 'checkbox', | ||
552 | }, | 554 | }, |
553 | runInBackground: { | 555 | runInBackground: { |
554 | label: intl.formatMessage(messages.runInBackground), | 556 | label: intl.formatMessage(messages.runInBackground), |
555 | value: settings.all.app.runInBackground, | 557 | value: settings.all.app.runInBackground, |
556 | default: DEFAULT_APP_SETTINGS.runInBackground, | 558 | default: DEFAULT_APP_SETTINGS.runInBackground, |
559 | type: 'checkbox', | ||
557 | }, | 560 | }, |
558 | startMinimized: { | 561 | startMinimized: { |
559 | label: intl.formatMessage(messages.startMinimized), | 562 | label: intl.formatMessage(messages.startMinimized), |
560 | value: settings.all.app.startMinimized, | 563 | value: settings.all.app.startMinimized, |
561 | default: DEFAULT_APP_SETTINGS.startMinimized, | 564 | default: DEFAULT_APP_SETTINGS.startMinimized, |
565 | type: 'checkbox', | ||
562 | }, | 566 | }, |
563 | confirmOnQuit: { | 567 | confirmOnQuit: { |
564 | label: intl.formatMessage(messages.confirmOnQuit), | 568 | label: intl.formatMessage(messages.confirmOnQuit), |
565 | value: settings.all.app.confirmOnQuit, | 569 | value: settings.all.app.confirmOnQuit, |
566 | default: DEFAULT_APP_SETTINGS.confirmOnQuit, | 570 | default: DEFAULT_APP_SETTINGS.confirmOnQuit, |
571 | type: 'checkbox', | ||
567 | }, | 572 | }, |
568 | enableSystemTray: { | 573 | enableSystemTray: { |
569 | label: intl.formatMessage( | 574 | label: intl.formatMessage( |
@@ -571,11 +576,13 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
571 | ), | 576 | ), |
572 | value: settings.all.app.enableSystemTray, | 577 | value: settings.all.app.enableSystemTray, |
573 | default: DEFAULT_APP_SETTINGS.enableSystemTray, | 578 | default: DEFAULT_APP_SETTINGS.enableSystemTray, |
579 | type: 'checkbox', | ||
574 | }, | 580 | }, |
575 | reloadAfterResume: { | 581 | reloadAfterResume: { |
576 | label: intl.formatMessage(messages.reloadAfterResume), | 582 | label: intl.formatMessage(messages.reloadAfterResume), |
577 | value: settings.all.app.reloadAfterResume, | 583 | value: settings.all.app.reloadAfterResume, |
578 | default: DEFAULT_APP_SETTINGS.reloadAfterResume, | 584 | default: DEFAULT_APP_SETTINGS.reloadAfterResume, |
585 | type: 'checkbox', | ||
579 | }, | 586 | }, |
580 | reloadAfterResumeTime: { | 587 | reloadAfterResumeTime: { |
581 | label: intl.formatMessage(messages.reloadAfterResumeTime), | 588 | label: intl.formatMessage(messages.reloadAfterResumeTime), |
@@ -586,26 +593,31 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
586 | label: intl.formatMessage(messages.minimizeToSystemTray), | 593 | label: intl.formatMessage(messages.minimizeToSystemTray), |
587 | value: settings.all.app.minimizeToSystemTray, | 594 | value: settings.all.app.minimizeToSystemTray, |
588 | default: DEFAULT_APP_SETTINGS.minimizeToSystemTray, | 595 | default: DEFAULT_APP_SETTINGS.minimizeToSystemTray, |
596 | type: 'checkbox', | ||
589 | }, | 597 | }, |
590 | closeToSystemTray: { | 598 | closeToSystemTray: { |
591 | label: intl.formatMessage(messages.closeToSystemTray), | 599 | label: intl.formatMessage(messages.closeToSystemTray), |
592 | value: settings.all.app.closeToSystemTray, | 600 | value: settings.all.app.closeToSystemTray, |
593 | default: DEFAULT_APP_SETTINGS.closeToSystemTray, | 601 | default: DEFAULT_APP_SETTINGS.closeToSystemTray, |
602 | type: 'checkbox', | ||
594 | }, | 603 | }, |
595 | privateNotifications: { | 604 | privateNotifications: { |
596 | label: intl.formatMessage(messages.privateNotifications), | 605 | label: intl.formatMessage(messages.privateNotifications), |
597 | value: settings.all.app.privateNotifications, | 606 | value: settings.all.app.privateNotifications, |
598 | default: DEFAULT_APP_SETTINGS.privateNotifications, | 607 | default: DEFAULT_APP_SETTINGS.privateNotifications, |
608 | type: 'checkbox', | ||
599 | }, | 609 | }, |
600 | clipboardNotifications: { | 610 | clipboardNotifications: { |
601 | label: intl.formatMessage(messages.clipboardNotifications), | 611 | label: intl.formatMessage(messages.clipboardNotifications), |
602 | value: settings.all.app.clipboardNotifications, | 612 | value: settings.all.app.clipboardNotifications, |
603 | default: DEFAULT_APP_SETTINGS.clipboardNotifications, | 613 | default: DEFAULT_APP_SETTINGS.clipboardNotifications, |
614 | type: 'checkbox', | ||
604 | }, | 615 | }, |
605 | notifyTaskBarOnMessage: { | 616 | notifyTaskBarOnMessage: { |
606 | label: intl.formatMessage(messages.notifyTaskBarOnMessage), | 617 | label: intl.formatMessage(messages.notifyTaskBarOnMessage), |
607 | value: settings.all.app.notifyTaskBarOnMessage, | 618 | value: settings.all.app.notifyTaskBarOnMessage, |
608 | default: DEFAULT_APP_SETTINGS.notifyTaskBarOnMessage, | 619 | default: DEFAULT_APP_SETTINGS.notifyTaskBarOnMessage, |
620 | type: 'checkbox', | ||
609 | }, | 621 | }, |
610 | navigationBarBehaviour: { | 622 | navigationBarBehaviour: { |
611 | label: intl.formatMessage(messages.navigationBarBehaviour), | 623 | label: intl.formatMessage(messages.navigationBarBehaviour), |
@@ -618,6 +630,7 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
618 | value: settings.all.app.webRTCIPHandlingPolicy, | 630 | value: settings.all.app.webRTCIPHandlingPolicy, |
619 | default: DEFAULT_APP_SETTINGS.webRTCIPHandlingPolicy, | 631 | default: DEFAULT_APP_SETTINGS.webRTCIPHandlingPolicy, |
620 | options: webRTCIPHandlingPolicies, | 632 | options: webRTCIPHandlingPolicies, |
633 | type: 'checkbox', | ||
621 | }, | 634 | }, |
622 | searchEngine: { | 635 | searchEngine: { |
623 | label: intl.formatMessage(messages.searchEngine), | 636 | label: intl.formatMessage(messages.searchEngine), |
@@ -641,11 +654,13 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
641 | label: intl.formatMessage(messages.sentry), | 654 | label: intl.formatMessage(messages.sentry), |
642 | value: settings.all.app.sentry, | 655 | value: settings.all.app.sentry, |
643 | default: DEFAULT_APP_SETTINGS.sentry, | 656 | default: DEFAULT_APP_SETTINGS.sentry, |
657 | type: 'checkbox', | ||
644 | }, | 658 | }, |
645 | hibernateOnStartup: { | 659 | hibernateOnStartup: { |
646 | label: intl.formatMessage(messages.hibernateOnStartup), | 660 | label: intl.formatMessage(messages.hibernateOnStartup), |
647 | value: settings.all.app.hibernateOnStartup, | 661 | value: settings.all.app.hibernateOnStartup, |
648 | default: DEFAULT_APP_SETTINGS.hibernateOnStartup, | 662 | default: DEFAULT_APP_SETTINGS.hibernateOnStartup, |
663 | type: 'checkbox', | ||
649 | }, | 664 | }, |
650 | hibernationStrategy: { | 665 | hibernationStrategy: { |
651 | label: intl.formatMessage(messages.hibernationStrategy), | 666 | label: intl.formatMessage(messages.hibernationStrategy), |
@@ -669,6 +684,7 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
669 | label: intl.formatMessage(messages.wakeUpHibernationSplay), | 684 | label: intl.formatMessage(messages.wakeUpHibernationSplay), |
670 | value: settings.all.app.wakeUpHibernationSplay, | 685 | value: settings.all.app.wakeUpHibernationSplay, |
671 | default: DEFAULT_APP_SETTINGS.wakeUpHibernationSplay, | 686 | default: DEFAULT_APP_SETTINGS.wakeUpHibernationSplay, |
687 | type: 'checkbox', | ||
672 | }, | 688 | }, |
673 | predefinedTodoServer: { | 689 | predefinedTodoServer: { |
674 | label: intl.formatMessage(messages.predefinedTodoServer), | 690 | label: intl.formatMessage(messages.predefinedTodoServer), |
@@ -685,6 +701,7 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
685 | label: intl.formatMessage(messages.enableLock), | 701 | label: intl.formatMessage(messages.enableLock), |
686 | value: settings.all.app.lockingFeatureEnabled || false, | 702 | value: settings.all.app.lockingFeatureEnabled || false, |
687 | default: DEFAULT_APP_SETTINGS.lockingFeatureEnabled, | 703 | default: DEFAULT_APP_SETTINGS.lockingFeatureEnabled, |
704 | type: 'checkbox', | ||
688 | }, | 705 | }, |
689 | lockedPassword: { | 706 | lockedPassword: { |
690 | label: intl.formatMessage(messages.lockPassword), | 707 | label: intl.formatMessage(messages.lockPassword), |
@@ -696,6 +713,7 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
696 | label: intl.formatMessage(messages.useTouchIdToUnlock), | 713 | label: intl.formatMessage(messages.useTouchIdToUnlock), |
697 | value: settings.all.app.useTouchIdToUnlock, | 714 | value: settings.all.app.useTouchIdToUnlock, |
698 | default: DEFAULT_APP_SETTINGS.useTouchIdToUnlock, | 715 | default: DEFAULT_APP_SETTINGS.useTouchIdToUnlock, |
716 | type: 'checkbox', | ||
699 | }, | 717 | }, |
700 | inactivityLock: { | 718 | inactivityLock: { |
701 | label: intl.formatMessage(messages.inactivityLock), | 719 | label: intl.formatMessage(messages.inactivityLock), |
@@ -707,6 +725,7 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
707 | label: intl.formatMessage(messages.scheduledDNDEnabled), | 725 | label: intl.formatMessage(messages.scheduledDNDEnabled), |
708 | value: settings.all.app.scheduledDNDEnabled || false, | 726 | value: settings.all.app.scheduledDNDEnabled || false, |
709 | default: DEFAULT_APP_SETTINGS.scheduledDNDEnabled, | 727 | default: DEFAULT_APP_SETTINGS.scheduledDNDEnabled, |
728 | type: 'checkbox', | ||
710 | }, | 729 | }, |
711 | scheduledDNDStart: { | 730 | scheduledDNDStart: { |
712 | label: intl.formatMessage(messages.scheduledDNDStart), | 731 | label: intl.formatMessage(messages.scheduledDNDStart), |
@@ -724,31 +743,37 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
724 | label: intl.formatMessage(messages.showDisabledServices), | 743 | label: intl.formatMessage(messages.showDisabledServices), |
725 | value: settings.all.app.showDisabledServices, | 744 | value: settings.all.app.showDisabledServices, |
726 | default: DEFAULT_APP_SETTINGS.showDisabledServices, | 745 | default: DEFAULT_APP_SETTINGS.showDisabledServices, |
746 | type: 'checkbox', | ||
727 | }, | 747 | }, |
728 | showServiceName: { | 748 | showServiceName: { |
729 | label: intl.formatMessage(messages.showServiceName), | 749 | label: intl.formatMessage(messages.showServiceName), |
730 | value: settings.all.app.showServiceName, | 750 | value: settings.all.app.showServiceName, |
731 | default: DEFAULT_APP_SETTINGS.showServiceName, | 751 | default: DEFAULT_APP_SETTINGS.showServiceName, |
752 | type: 'checkbox', | ||
732 | }, | 753 | }, |
733 | showMessageBadgeWhenMuted: { | 754 | showMessageBadgeWhenMuted: { |
734 | label: intl.formatMessage(messages.showMessageBadgeWhenMuted), | 755 | label: intl.formatMessage(messages.showMessageBadgeWhenMuted), |
735 | value: settings.all.app.showMessageBadgeWhenMuted, | 756 | value: settings.all.app.showMessageBadgeWhenMuted, |
736 | default: DEFAULT_APP_SETTINGS.showMessageBadgeWhenMuted, | 757 | default: DEFAULT_APP_SETTINGS.showMessageBadgeWhenMuted, |
758 | type: 'checkbox', | ||
737 | }, | 759 | }, |
738 | showDragArea: { | 760 | showDragArea: { |
739 | label: intl.formatMessage(messages.showDragArea), | 761 | label: intl.formatMessage(messages.showDragArea), |
740 | value: settings.all.app.showDragArea, | 762 | value: settings.all.app.showDragArea, |
741 | default: DEFAULT_APP_SETTINGS.showDragArea, | 763 | default: DEFAULT_APP_SETTINGS.showDragArea, |
764 | type: 'checkbox', | ||
742 | }, | 765 | }, |
743 | enableSpellchecking: { | 766 | enableSpellchecking: { |
744 | label: intl.formatMessage(messages.enableSpellchecking), | 767 | label: intl.formatMessage(messages.enableSpellchecking), |
745 | value: settings.all.app.enableSpellchecking, | 768 | value: settings.all.app.enableSpellchecking, |
746 | default: DEFAULT_APP_SETTINGS.enableSpellchecking, | 769 | default: DEFAULT_APP_SETTINGS.enableSpellchecking, |
770 | type: 'checkbox', | ||
747 | }, | 771 | }, |
748 | enableTranslator: { | 772 | enableTranslator: { |
749 | label: intl.formatMessage(messages.enableTranslator), | 773 | label: intl.formatMessage(messages.enableTranslator), |
750 | value: settings.all.app.enableTranslator, | 774 | value: settings.all.app.enableTranslator, |
751 | default: DEFAULT_APP_SETTINGS.enableTranslator, | 775 | default: DEFAULT_APP_SETTINGS.enableTranslator, |
776 | type: 'checkbox', | ||
752 | }, | 777 | }, |
753 | spellcheckerLanguage: { | 778 | spellcheckerLanguage: { |
754 | label: intl.formatMessage(globalMessages.spellcheckerLanguage), | 779 | label: intl.formatMessage(globalMessages.spellcheckerLanguage), |
@@ -766,21 +791,25 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
766 | label: intl.formatMessage(messages.darkMode), | 791 | label: intl.formatMessage(messages.darkMode), |
767 | value: settings.all.app.darkMode, | 792 | value: settings.all.app.darkMode, |
768 | default: DEFAULT_APP_SETTINGS.darkMode, | 793 | default: DEFAULT_APP_SETTINGS.darkMode, |
794 | type: 'checkbox', | ||
769 | }, | 795 | }, |
770 | adaptableDarkMode: { | 796 | adaptableDarkMode: { |
771 | label: intl.formatMessage(messages.adaptableDarkMode), | 797 | label: intl.formatMessage(messages.adaptableDarkMode), |
772 | value: settings.all.app.adaptableDarkMode, | 798 | value: settings.all.app.adaptableDarkMode, |
773 | default: DEFAULT_APP_SETTINGS.adaptableDarkMode, | 799 | default: DEFAULT_APP_SETTINGS.adaptableDarkMode, |
800 | type: 'checkbox', | ||
774 | }, | 801 | }, |
775 | universalDarkMode: { | 802 | universalDarkMode: { |
776 | label: intl.formatMessage(messages.universalDarkMode), | 803 | label: intl.formatMessage(messages.universalDarkMode), |
777 | value: settings.all.app.universalDarkMode, | 804 | value: settings.all.app.universalDarkMode, |
778 | default: DEFAULT_APP_SETTINGS.universalDarkMode, | 805 | default: DEFAULT_APP_SETTINGS.universalDarkMode, |
806 | type: 'checkbox', | ||
779 | }, | 807 | }, |
780 | splitMode: { | 808 | splitMode: { |
781 | label: intl.formatMessage(messages.splitMode), | 809 | label: intl.formatMessage(messages.splitMode), |
782 | value: settings.all.app.splitMode, | 810 | value: settings.all.app.splitMode, |
783 | default: DEFAULT_APP_SETTINGS.splitMode, | 811 | default: DEFAULT_APP_SETTINGS.splitMode, |
812 | type: 'checkbox', | ||
784 | }, | 813 | }, |
785 | splitColumns: { | 814 | splitColumns: { |
786 | label: `${intl.formatMessage( | 815 | label: `${intl.formatMessage( |
@@ -811,31 +840,37 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
811 | label: intl.formatMessage(messages.enableLongPressServiceHint), | 840 | label: intl.formatMessage(messages.enableLongPressServiceHint), |
812 | value: settings.all.app.enableLongPressServiceHint, | 841 | value: settings.all.app.enableLongPressServiceHint, |
813 | default: DEFAULT_APP_SETTINGS.enableLongPressServiceHint, | 842 | default: DEFAULT_APP_SETTINGS.enableLongPressServiceHint, |
843 | type: 'checkbox', | ||
814 | }, | 844 | }, |
815 | useHorizontalStyle: { | 845 | useHorizontalStyle: { |
816 | label: intl.formatMessage(messages.useHorizontalStyle), | 846 | label: intl.formatMessage(messages.useHorizontalStyle), |
817 | value: settings.all.app.useHorizontalStyle, | 847 | value: settings.all.app.useHorizontalStyle, |
818 | default: DEFAULT_APP_SETTINGS.useHorizontalStyle, | 848 | default: DEFAULT_APP_SETTINGS.useHorizontalStyle, |
849 | type: 'checkbox', | ||
819 | }, | 850 | }, |
820 | hideCollapseButton: { | 851 | hideCollapseButton: { |
821 | label: intl.formatMessage(messages.hideCollapseButton), | 852 | label: intl.formatMessage(messages.hideCollapseButton), |
822 | value: settings.all.app.hideCollapseButton, | 853 | value: settings.all.app.hideCollapseButton, |
823 | default: DEFAULT_APP_SETTINGS.hideCollapseButton, | 854 | default: DEFAULT_APP_SETTINGS.hideCollapseButton, |
855 | type: 'checkbox', | ||
824 | }, | 856 | }, |
825 | hideRecipesButton: { | 857 | hideRecipesButton: { |
826 | label: intl.formatMessage(messages.hideRecipesButton), | 858 | label: intl.formatMessage(messages.hideRecipesButton), |
827 | value: settings.all.app.hideRecipesButton, | 859 | value: settings.all.app.hideRecipesButton, |
828 | default: DEFAULT_APP_SETTINGS.hideRecipesButton, | 860 | default: DEFAULT_APP_SETTINGS.hideRecipesButton, |
861 | type: 'checkbox', | ||
829 | }, | 862 | }, |
830 | hideSplitModeButton: { | 863 | hideSplitModeButton: { |
831 | label: intl.formatMessage(messages.hideSplitModeButton), | 864 | label: intl.formatMessage(messages.hideSplitModeButton), |
832 | value: settings.all.app.hideSplitModeButton, | 865 | value: settings.all.app.hideSplitModeButton, |
833 | default: DEFAULT_APP_SETTINGS.hideSplitModeButton, | 866 | default: DEFAULT_APP_SETTINGS.hideSplitModeButton, |
867 | type: 'checkbox', | ||
834 | }, | 868 | }, |
835 | useGrayscaleServices: { | 869 | useGrayscaleServices: { |
836 | label: intl.formatMessage(messages.useGrayscaleServices), | 870 | label: intl.formatMessage(messages.useGrayscaleServices), |
837 | value: settings.all.app.useGrayscaleServices, | 871 | value: settings.all.app.useGrayscaleServices, |
838 | default: DEFAULT_APP_SETTINGS.useGrayscaleServices, | 872 | default: DEFAULT_APP_SETTINGS.useGrayscaleServices, |
873 | type: 'checkbox', | ||
839 | }, | 874 | }, |
840 | grayscaleServicesDim: { | 875 | grayscaleServicesDim: { |
841 | label: intl.formatMessage(messages.grayscaleServicesDim), | 876 | label: intl.formatMessage(messages.grayscaleServicesDim), |
@@ -846,21 +881,25 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
846 | label: intl.formatMessage(messages.hideWorkspacesButton), | 881 | label: intl.formatMessage(messages.hideWorkspacesButton), |
847 | value: settings.all.app.hideWorkspacesButton, | 882 | value: settings.all.app.hideWorkspacesButton, |
848 | default: DEFAULT_APP_SETTINGS.hideWorkspacesButton, | 883 | default: DEFAULT_APP_SETTINGS.hideWorkspacesButton, |
884 | type: 'checkbox', | ||
849 | }, | 885 | }, |
850 | hideNotificationsButton: { | 886 | hideNotificationsButton: { |
851 | label: intl.formatMessage(messages.hideNotificationsButton), | 887 | label: intl.formatMessage(messages.hideNotificationsButton), |
852 | value: settings.all.app.hideNotificationsButton, | 888 | value: settings.all.app.hideNotificationsButton, |
853 | default: DEFAULT_APP_SETTINGS.hideNotificationsButton, | 889 | default: DEFAULT_APP_SETTINGS.hideNotificationsButton, |
890 | type: 'checkbox', | ||
854 | }, | 891 | }, |
855 | hideSettingsButton: { | 892 | hideSettingsButton: { |
856 | label: intl.formatMessage(messages.hideSettingsButton), | 893 | label: intl.formatMessage(messages.hideSettingsButton), |
857 | value: settings.all.app.hideSettingsButton, | 894 | value: settings.all.app.hideSettingsButton, |
858 | default: DEFAULT_APP_SETTINGS.hideSettingsButton, | 895 | default: DEFAULT_APP_SETTINGS.hideSettingsButton, |
896 | type: 'checkbox', | ||
859 | }, | 897 | }, |
860 | alwaysShowWorkspaces: { | 898 | alwaysShowWorkspaces: { |
861 | label: intl.formatMessage(messages.alwaysShowWorkspaces), | 899 | label: intl.formatMessage(messages.alwaysShowWorkspaces), |
862 | value: settings.all.app.alwaysShowWorkspaces, | 900 | value: settings.all.app.alwaysShowWorkspaces, |
863 | default: DEFAULT_APP_SETTINGS.alwaysShowWorkspaces, | 901 | default: DEFAULT_APP_SETTINGS.alwaysShowWorkspaces, |
902 | type: 'checkbox', | ||
864 | }, | 903 | }, |
865 | accentColor: { | 904 | accentColor: { |
866 | label: intl.formatMessage(messages.accentColor), | 905 | label: intl.formatMessage(messages.accentColor), |
@@ -876,11 +915,13 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
876 | label: intl.formatMessage(messages.enableGPUAcceleration), | 915 | label: intl.formatMessage(messages.enableGPUAcceleration), |
877 | value: settings.all.app.enableGPUAcceleration, | 916 | value: settings.all.app.enableGPUAcceleration, |
878 | default: DEFAULT_APP_SETTINGS.enableGPUAcceleration, | 917 | default: DEFAULT_APP_SETTINGS.enableGPUAcceleration, |
918 | type: 'checkbox', | ||
879 | }, | 919 | }, |
880 | enableGlobalHideShortcut: { | 920 | enableGlobalHideShortcut: { |
881 | label: intl.formatMessage(messages.enableGlobalHideShortcut), | 921 | label: intl.formatMessage(messages.enableGlobalHideShortcut), |
882 | value: settings.all.app.enableGlobalHideShortcut, | 922 | value: settings.all.app.enableGlobalHideShortcut, |
883 | default: DEFAULT_APP_SETTINGS.enableGlobalHideShortcut, | 923 | default: DEFAULT_APP_SETTINGS.enableGlobalHideShortcut, |
924 | type: 'checkbox', | ||
884 | }, | 925 | }, |
885 | locale: { | 926 | locale: { |
886 | label: intl.formatMessage(messages.language), | 927 | label: intl.formatMessage(messages.language), |
@@ -897,6 +938,7 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
897 | label: intl.formatMessage(messages.automaticUpdates), | 938 | label: intl.formatMessage(messages.automaticUpdates), |
898 | value: settings.app.automaticUpdates, | 939 | value: settings.app.automaticUpdates, |
899 | default: DEFAULT_APP_SETTINGS.automaticUpdates, | 940 | default: DEFAULT_APP_SETTINGS.automaticUpdates, |
941 | type: 'checkbox', | ||
900 | }, | 942 | }, |
901 | }, | 943 | }, |
902 | }; | 944 | }; |
@@ -914,6 +956,7 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
914 | label: intl.formatMessage(messages.keepAllWorkspacesLoaded), | 956 | label: intl.formatMessage(messages.keepAllWorkspacesLoaded), |
915 | value: workspaces.settings.keepAllWorkspacesLoaded, | 957 | value: workspaces.settings.keepAllWorkspacesLoaded, |
916 | default: DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED, | 958 | default: DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED, |
959 | type: 'checkbox', | ||
917 | }; | 960 | }; |
918 | } | 961 | } |
919 | 962 | ||
@@ -922,6 +965,7 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
922 | label: intl.formatMessage(messages.enableTodos), | 965 | label: intl.formatMessage(messages.enableTodos), |
923 | value: todos.settings.isFeatureEnabledByUser, | 966 | value: todos.settings.isFeatureEnabledByUser, |
924 | default: DEFAULT_IS_FEATURE_ENABLED_BY_USER, | 967 | default: DEFAULT_IS_FEATURE_ENABLED_BY_USER, |
968 | type: 'checkbox', | ||
925 | }; | 969 | }; |
926 | } | 970 | } |
927 | 971 | ||