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

feat(UI): Added link for docs to add clusters #17395

Merged
merged 7 commits into from
Mar 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions ui/src/app/settings/components/clusters-list/clusters-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,21 @@ export const ClustersList = (props: RouteComponentProps<{}>) => {
<Consumer>
{ctx => (
<React.Fragment>
<Page title='Clusters' toolbar={{breadcrumbs: [{title: 'Settings', path: '/settings'}, {title: 'Clusters'}]}}>
<Page
title='Clusters'
toolbar={{
breadcrumbs: [{title: 'Settings', path: '/settings'}, {title: 'Clusters'}],
actionMenu: {
className: 'fa fa-external-link',
items: [
{
title: 'Add new Cluster',
iconClassName: 'fa fa-external-link',
action: () => window.open('https://argo-cd.readthedocs.io/en/stable/operator-manual/cluster-management/#adding-a-cluster', '_blank')
}
]
}
}}>
<div className='repos-list'>
<div className='argo-container'>
<DataLoader
Expand Down Expand Up @@ -91,7 +105,13 @@ export const ClustersList = (props: RouteComponentProps<{}>) => {
)) || (
<EmptyState icon='argo-icon-hosts'>
<h4>No clusters connected</h4>
<h5>Connect more clusters using argocd CLI</h5>
<button
className='argo-button argo-button--base'
onClick={() =>
window.open('https://argo-cd.readthedocs.io/en/stable/operator-manual/cluster-management/#adding-a-cluster', '_blank')
}>
Add new Cluster
</button>
</EmptyState>
)
}
Expand Down
Loading