Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
apps/containers: Show back the 'no containers found' pane
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Jan 20, 2024
1 parent aa74df3 commit 9db9a76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apps/Containers/pages/ContainersApp/ContainersApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export default function ContainersApp() {
});
};

const noItems = containers === null || containers?.length === 0;

return (
<div className={styles.server}>
<ProgressOverlay show={isLoading} />
Expand All @@ -115,7 +117,7 @@ export default function ContainersApp() {
}}
/>
))}
{containers?.length === 0 && (
{noItems && (
<NoItems
text="No containers found."
icon="deployed_code"
Expand Down

0 comments on commit 9db9a76

Please sign in to comment.