Admin: fetch ConfigDB config, start RegistrationModePicker

This commit is contained in:
Alex Gleason
2020-12-29 22:17:03 -06:00
parent 7507553bfd
commit bfd01d0316
6 changed files with 84 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ import { debounce } from 'lodash';
import { uploadCompose, resetCompose } from '../../actions/compose';
import { expandHomeTimeline } from '../../actions/timelines';
import { expandNotifications } from '../../actions/notifications';
import { fetchReports, fetchUsers } from '../../actions/admin';
import { fetchReports, fetchUsers, fetchConfig } from '../../actions/admin';
import { fetchFilters } from '../../actions/filters';
import { fetchChats } from 'soapbox/actions/chats';
import { clearHeight } from '../../actions/height_cache';
@@ -465,6 +465,7 @@ class UI extends React.PureComponent {
if (isStaff(account)) {
this.props.dispatch(fetchReports({ state: 'open' }));
this.props.dispatch(fetchUsers({ page: 1, filters: 'local,need_approval' }));
this.props.dispatch(fetchConfig());
}
setTimeout(() => this.props.dispatch(fetchFilters()), 500);