Geo: Removing Geo nodes in the admin area
As was discussed in https://gitlab.com/gitlab-org/gitlab-ee/issues/9608 we need to deny removing a primary node without removing all the secondaries first. > Following on that, we could disable "Remove" and have a tooltip like "Cannot remove a primary node if there is a secondary node" to make it really explicit. When you remove the primary node from the API, it should return an error if there are any secondaries left. ## Proposed design ![button-layout](/uploads/80c2f19c32aac6c8aea6242e7c1c884e/button-layout.png) - The `remove` button is disabled if there are secondary nodes. ## Reference - [disabled button - behavior](https://design.gitlab.com/components/button/#disabled) - [disabled button - component](https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-button--default)
issue