mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
allow app skeleton to display while config is loading
This commit is contained in:
parent
6c4f9364ee
commit
cde8cb57da
@ -76,10 +76,6 @@ function AppContainer({ i18n, navRouteConfig = [], children }) {
|
||||
loadConfig();
|
||||
}, [config, pathname, handleLogout]);
|
||||
|
||||
if (!isReady) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const header = (
|
||||
<PageHeader
|
||||
showNavToggle
|
||||
@ -119,7 +115,7 @@ function AppContainer({ i18n, navRouteConfig = [], children }) {
|
||||
return (
|
||||
<>
|
||||
<Page isManagedSidebar header={header} sidebar={sidebar}>
|
||||
<ConfigProvider value={config}>{children}</ConfigProvider>
|
||||
{isReady && <ConfigProvider value={config}>{children}</ConfigProvider>}
|
||||
</Page>
|
||||
<About
|
||||
ansible_version={config?.ansible_version}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user