|
@@ -19,6 +19,7 @@ import { Overlay, View } from './types';
|
|
|
import { useLibrary } from './utils/library';
|
|
import { useLibrary } from './utils/library';
|
|
|
import { ViewClientList } from './views/clients';
|
|
import { ViewClientList } from './views/clients';
|
|
|
import { CommandView } from './views/command';
|
|
import { CommandView } from './views/command';
|
|
|
|
|
+import { DisconnectedDialog } from './views/disconnected';
|
|
|
import { HelpDialog } from './views/help';
|
|
import { HelpDialog } from './views/help';
|
|
|
import { ViewLibrary } from './views/library';
|
|
import { ViewLibrary } from './views/library';
|
|
|
import { ViewQueue } from './views/queue';
|
|
import { ViewQueue } from './views/queue';
|
|
@@ -90,6 +91,11 @@ export const CmusUIProvider: UIProviderComponent = ({
|
|
|
{stateUI.overlay === Overlay.Help && <HelpDialog />}
|
|
{stateUI.overlay === Overlay.Help && <HelpDialog />}
|
|
|
</Styled.Overlay>
|
|
</Styled.Overlay>
|
|
|
)}
|
|
)}
|
|
|
|
|
+ {!ready && (
|
|
|
|
|
+ <Styled.Overlay>
|
|
|
|
|
+ <DisconnectedDialog />
|
|
|
|
|
+ </Styled.Overlay>
|
|
|
|
|
+ )}
|
|
|
{stateUI.searchMode && <Search />}
|
|
{stateUI.searchMode && <Search />}
|
|
|
<PlayerStatus song={currentSong} connecting={connecting} error={error} ready={ready} />
|
|
<PlayerStatus song={currentSong} connecting={connecting} error={error} ready={ready} />
|
|
|
<CommandView />
|
|
<CommandView />
|