Restore export data CSV (behind a feature flag)

This commit is contained in:
Alex Gleason
2023-01-11 17:59:50 -06:00
parent ebfd7bdc94
commit e50e4b8e60
4 changed files with 20 additions and 11 deletions

View File

@@ -76,7 +76,7 @@ import {
EmailConfirmation,
DeleteAccount,
SoapboxConfig,
// ExportData,
ExportData,
ImportData,
Backups,
MfaForm,
@@ -273,8 +273,7 @@ const SwitchingColumnsArea: React.FC = ({ children }) => {
{features.scheduledStatuses && <WrappedRoute path='/scheduled_statuses' page={DefaultPage} component={ScheduledStatuses} content={children} />}
<WrappedRoute path='/settings/profile' page={DefaultPage} component={EditProfile} content={children} />
{/* FIXME: this could DDoS our API? :\ */}
{/* <WrappedRoute path='/settings/export' page={DefaultPage} component={ExportData} content={children} /> */}
{features.exportData && <WrappedRoute path='/settings/export' page={DefaultPage} component={ExportData} content={children} />}
{features.importData && <WrappedRoute path='/settings/import' page={DefaultPage} component={ImportData} content={children} />}
{features.accountAliases && <WrappedRoute path='/settings/aliases' page={DefaultPage} component={Aliases} content={children} />}
{features.accountMoving && <WrappedRoute path='/settings/migration' page={DefaultPage} component={Migration} content={children} />}