diff --git a/ElectronClient/app/gui/ConfigScreen.jsx b/ElectronClient/app/gui/ConfigScreen.jsx index 61644e79c..e20e0e99d 100644 --- a/ElectronClient/app/gui/ConfigScreen.jsx +++ b/ElectronClient/app/gui/ConfigScreen.jsx @@ -76,6 +76,26 @@ class ConfigScreenComponent extends React.Component { ); + if (section.name === 'sync') { + const syncTargetMd = SyncTargetRegistry.idToMetadata(settings['sync.target']); + + if (syncTargetMd.supportsConfigCheck) { + const messages = shared.checkSyncConfigMessages(this); + const statusStyle = Object.assign({}, theme.textStyle, { marginTop: 10 }); + const statusComp = !messages.length ? null : ( +
+ {messages[0]} + {messages.length >= 1 ? (

{messages[1]}

) : null} +
); + + settingComps.push( +
+ + { statusComp } +
); + } + } + return (

{Setting.sectionNameToLabel(section.name)}

@@ -323,24 +343,6 @@ class ConfigScreenComponent extends React.Component { const settingComps = shared.settingsToComponents2(this, 'desktop', settings); - const syncTargetMd = SyncTargetRegistry.idToMetadata(settings['sync.target']); - - if (syncTargetMd.supportsConfigCheck) { - const messages = shared.checkSyncConfigMessages(this); - const statusStyle = Object.assign({}, theme.textStyle, { marginTop: 10 }); - const statusComp = !messages.length ? null : ( -
- {messages[0]} - {messages.length >= 1 ? (

{messages[1]}

) : null} -
); - - settingComps.push( -
- - { statusComp } -
); - } - const buttonBarStyle = { display: 'flex', alignItems: 'center',