Add new overview landing page setting (#39074)
This commit is contained in:
1 parent
f6d1795da5
commit
07d099cbf7
15 files changed
+483
-17
No files matched your search
@@ -16,19 +16,33 @@ export const fetchServer = createDataLoadingThunk(
|
||||
dispatch(importFetchedAccount(instance.contact.account));
|
||||
}
|
||||
},
|
||||
{
|
||||
condition: (_, { getState }) => !getState().server.server.isLoading,
|
||||
},
|
||||
);
|
||||
|
||||
export const fetchExtendedDescription = createDataLoadingThunk(
|
||||
'server/extended_description',
|
||||
() => apiGetExtendedDescription(),
|
||||
{
|
||||
condition: (_, { getState }) =>
|
||||
!getState().server.extendedDescription.isLoading,
|
||||
},
|
||||
);
|
||||
|
||||
export const fetchServerTranslationLanguages = createDataLoadingThunk(
|
||||
'server/translation_languages',
|
||||
() => apiGetTranslationLanguages(),
|
||||
{
|
||||
condition: (_, { getState }) =>
|
||||
!getState().server.translationLanguages.isLoading,
|
||||
},
|
||||
);
|
||||
|
||||
export const fetchDomainBlocks = createDataLoadingThunk(
|
||||
'server/domain_blocks',
|
||||
() => apiGetDomainBlocks(),
|
||||
{
|
||||
condition: (_, { getState }) => !getState().server.domainBlocks.isLoading,
|
||||
},
|
||||
);
|
||||
Reference in new issue
Block a user