Skip to content

Commit

Permalink
Display informative message when no Items are found
Browse files Browse the repository at this point in the history
  • Loading branch information
akram committed Dec 4, 2024
1 parent 3a70689 commit 4205f37
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/experimental/kueue-viz/frontend/src/ClusterQueues.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ClusterQueues = () => {
<Paper style={{ padding: '16px', marginTop: '20px' }}>
<Typography variant="h4" gutterBottom>Cluster Queues</Typography>
{queues.length === 0 ? (
<CircularProgress />
<Typography>No Cluster Queues found.</Typography>
) : (
<TableContainer component={Paper}>
<Table>
Expand Down
2 changes: 1 addition & 1 deletion cmd/experimental/kueue-viz/frontend/src/Cohorts.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Cohorts = () => {
<Paper style={{ padding: '16px', marginTop: '20px' }}>
<Typography variant="h4" gutterBottom>Cohorts</Typography>
{cohortList.length === 0 ? (
<CircularProgress />
<Typography>No Cohorts found.</Typography>
) : (
<TableContainer component={Paper}>
<Table>
Expand Down
2 changes: 1 addition & 1 deletion cmd/experimental/kueue-viz/frontend/src/LocalQueues.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const LocalQueues = () => {
<Paper style={{ padding: '16px', marginTop: '20px' }}>
<Typography variant="h4" gutterBottom>Local Queues</Typography>
{queues.length === 0 ? (
<CircularProgress />
<Typography>No Local Queues found.</Typography>
) : (
<TableContainer component={Paper}>
<Table>
Expand Down
2 changes: 1 addition & 1 deletion cmd/experimental/kueue-viz/frontend/src/ResourceFlavors.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ResourceFlavors = () => {
<Paper style={{ padding: '16px', marginTop: '20px' }}>
<Typography variant="h4" gutterBottom>Resource Flavors</Typography>
{resourceFlavors.length === 0 ? (
<CircularProgress />
<Typography>No Resource Flavors found.</Typography>
) : (
<TableContainer component={Paper}>
<Table>
Expand Down
2 changes: 1 addition & 1 deletion cmd/experimental/kueue-viz/frontend/src/Workloads.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Workloads = () => {
{/* Display a table with workload details */}
<Typography variant="h5" gutterBottom style={{ marginTop: '20px' }}>Workloads</Typography>
{workloads.length === 0 ? (
<CircularProgress />
<Typography>No Workloads found.</Typography>
) : (
<TableContainer component={Paper}>
<Table>
Expand Down

0 comments on commit 4205f37

Please sign in to comment.