|
|
|
|
@ -22,6 +22,7 @@ import { getFormatsAsync } from 'actions/formats-actions';
|
|
|
|
|
import { checkPluginsAsync } from 'actions/plugins-actions';
|
|
|
|
|
import { getUsersAsync } from 'actions/users-actions';
|
|
|
|
|
import { getAboutAsync } from 'actions/about-actions';
|
|
|
|
|
import { getModelsAsync } from 'actions/models-actions';
|
|
|
|
|
import { getUserAgreementsAsync } from 'actions/useragreements-actions';
|
|
|
|
|
import { shortcutsActions } from 'actions/shortcuts-actions';
|
|
|
|
|
import { switchSettingsDialog } from 'actions/settings-actions';
|
|
|
|
|
@ -30,7 +31,6 @@ import {
|
|
|
|
|
resetMessages,
|
|
|
|
|
} from './actions/notification-actions';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
CombinedState,
|
|
|
|
|
NotificationsState,
|
|
|
|
|
@ -42,6 +42,8 @@ const cvatStore = getCVATStore();
|
|
|
|
|
interface StateToProps {
|
|
|
|
|
pluginsInitialized: boolean;
|
|
|
|
|
pluginsFetching: boolean;
|
|
|
|
|
modelsInitialized: boolean;
|
|
|
|
|
modelsFetching: boolean;
|
|
|
|
|
userInitialized: boolean;
|
|
|
|
|
userFetching: boolean;
|
|
|
|
|
usersInitialized: boolean;
|
|
|
|
|
@ -65,6 +67,7 @@ interface DispatchToProps {
|
|
|
|
|
verifyAuthorized: () => void;
|
|
|
|
|
loadUsers: () => void;
|
|
|
|
|
loadAbout: () => void;
|
|
|
|
|
initModels: () => void;
|
|
|
|
|
initPlugins: () => void;
|
|
|
|
|
resetErrors: () => void;
|
|
|
|
|
resetMessages: () => void;
|
|
|
|
|
@ -82,12 +85,15 @@ function mapStateToProps(state: CombinedState): StateToProps {
|
|
|
|
|
const { about } = state;
|
|
|
|
|
const { shortcuts } = state;
|
|
|
|
|
const { userAgreements } = state;
|
|
|
|
|
const { models } = state;
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
userInitialized: auth.initialized,
|
|
|
|
|
userFetching: auth.fetching,
|
|
|
|
|
pluginsInitialized: plugins.initialized,
|
|
|
|
|
pluginsFetching: plugins.fetching,
|
|
|
|
|
modelsInitialized: models.initialized,
|
|
|
|
|
modelsFetching: models.fetching,
|
|
|
|
|
usersInitialized: users.initialized,
|
|
|
|
|
usersFetching: users.fetching,
|
|
|
|
|
aboutInitialized: about.initialized,
|
|
|
|
|
@ -111,6 +117,7 @@ function mapDispatchToProps(dispatch: any): DispatchToProps {
|
|
|
|
|
verifyAuthorized: (): void => dispatch(authorizedAsync()),
|
|
|
|
|
loadUserAgreements: (): void => dispatch(getUserAgreementsAsync()),
|
|
|
|
|
initPlugins: (): void => dispatch(checkPluginsAsync()),
|
|
|
|
|
initModels: (): void => dispatch(getModelsAsync()),
|
|
|
|
|
loadUsers: (): void => dispatch(getUsersAsync()),
|
|
|
|
|
loadAbout: (): void => dispatch(getAboutAsync()),
|
|
|
|
|
resetErrors: (): void => dispatch(resetErrors()),
|
|
|
|
|
|