Fixed repo mgmt buttons showing in additional clusters #5175
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Rafa Castelblanque rcastelblanq@vmware.com
Description of the change
Trivial PR that fixes issue in the multicluster mode that was showing buttons for managing repos when on additional clusters. This actions are not valid in that scenario.
Those buttons are not appearing anymore in additional clusters.
![image](https://user-images.githubusercontent.com/67455978/183403181-75e20347-792c-4ca1-bb4a-dcc6d520c099.png)
Benefits
Users will not get the repository creation dialog on additional clusters -a feature not available in Kubeapps so far- and thus will not get an error when trying to create a repo.
![image](https://user-images.githubusercontent.com/67455978/183403552-e15f7cf2-22eb-4d27-b869-403d51efd14f.png)
Possible drawbacks
N/A