diff --git a/app/soapbox/actions/admin.js b/app/soapbox/actions/admin.js index ad56f1fbb1..b3e382352a 100644 Binary files a/app/soapbox/actions/admin.js and b/app/soapbox/actions/admin.js differ diff --git a/app/soapbox/components/sidebar_menu.tsx b/app/soapbox/components/sidebar_menu.tsx index 2f8be96b1f..7d47baa470 100644 --- a/app/soapbox/components/sidebar_menu.tsx +++ b/app/soapbox/components/sidebar_menu.tsx @@ -311,7 +311,7 @@ const SidebarMenu: React.FC = (): JSX.Element | null => { /> )} - {features.importAPI && ( + {features.import && ( { /> )} - {features.federating && (features.accountMoving ? ( - - ) : features.accountAliasesAPI && ( - - ))} -
{ const navigateToSessions = () => history.push('/settings/tokens'); const navigateToEditProfile = () => history.push('/settings/profile'); const navigateToDeleteAccount = () => history.push('/settings/account'); + const navigateToMoveAccount = () => history.push('/settings/migration'); + const navigateToAliases = () => history.push('/settings/aliases'); const isMfaEnabled = mfa.getIn(['settings', 'totp']); @@ -69,24 +73,32 @@ const Settings = () => { - - - + {features.security || features.sessions && ( + <> + + + - - - - - - {isMfaEnabled ? - intl.formatMessage(messages.mfaEnabled) : - intl.formatMessage(messages.mfaDisabled)} - - {features.sessionsAPI && ( - - )} - - + + + {features.security && ( + <> + + + + {isMfaEnabled ? + intl.formatMessage(messages.mfaEnabled) : + intl.formatMessage(messages.mfaDisabled)} + + + )} + {features.sessions && ( + + )} + + + + )} @@ -96,15 +108,26 @@ const Settings = () => { - - - + {features.security || features.accountAliases && ( + <> + + + - - - - - + + + {features.security && ( + + )} + {features.federating && (features.accountMoving ? ( + + ) : features.accountAliases && ( + + ))} + + + + )} ); diff --git a/app/soapbox/features/ui/components/action-button.tsx b/app/soapbox/features/ui/components/action-button.tsx index 51348ee1de..205aed90fb 100644 --- a/app/soapbox/features/ui/components/action-button.tsx +++ b/app/soapbox/features/ui/components/action-button.tsx @@ -118,7 +118,7 @@ const ActionButton: React.FC = ({ account, actionType, small }) = /** Render a remote follow button, depending on features. */ const renderRemoteFollow = () => { // Remote follow through the API. - if (features.remoteInteractionsAPI) { + if (features.remoteInteractions) { return (