Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Classic Mode" when User doesn't have any Clusters #525

Merged
merged 1 commit into from
May 25, 2023

Conversation

ricoberger
Copy link
Member

When a user doesn't have any clusters configured and selects one of the resources from the sidebar in the "classic mode" the app crashes. This was caused, since we assumed that a user must have an active cluster when visiting the page, which is only true for the default layout but not for the "classic mode".

This is now fixed by adding conditional checks where required in the resources list widget and by throwing an error before making an API request when the list of clusters is empty.

Fixes #524

When a user doesn't have any clusters configured and selects one of the
resources from the sidebar in the "classic mode" the app crashes. This
was caused, since we assumed that a user must have an active cluster
when visiting the page, which is only true for the default layout but
not for the "classic mode".

This is now fixed by adding conditional checks where required in the
resources list widget and by throwing an error before making an API
request when the list of clusters is empty.
@ricoberger ricoberger added the changelog: fixed Something which wasn't working is fixed label May 25, 2023
@ricoberger ricoberger merged commit 5c58b1e into main May 25, 2023
3 checks passed
@ricoberger ricoberger deleted the fix-classic-mode-resource-list-page-for-no-cluster branch May 25, 2023 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fixed Something which wasn't working is fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.2.0 classic mode shows grey screen
1 participant