Skip to content

Commit

Permalink
Add tooltip to Cluster Settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-suse committed Sep 12, 2023
1 parent 4fca590 commit 28fa39c
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions assets/js/components/ClusterSettingsPage/ClusterSettingsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import PageHeader from '@components/PageHeader';
import BackButton from '@components/BackButton';
import LoadingBox from '@components/LoadingBox';
import WarningBanner from '@components/Banners/WarningBanner';
import Tooltip from '@components/Tooltip';

import { UNKNOWN_PROVIDER, VMWARE_PROVIDER, TARGET_CLUSTER } from '@lib/model';

Expand Down Expand Up @@ -107,15 +108,21 @@ function ClusterSettingsPage() {
>
Save Checks Selection
</Button>
<Button
type="primary"
className="mx-1"
onClick={requestExecution}
disabled={!canStartExecution(selectedChecks, saving)}
<Tooltip
className="w-56"
content="Click Start Execution or wait for Trento to periodically run checks."
visible={canStartExecution(selectedChecks, saving)}
>
<EOS_PLAY_CIRCLE className="fill-white inline-block align-sub" />{' '}
Start Execution
</Button>
<Button
type="primary"
className="mx-1"
onClick={requestExecution}
disabled={!canStartExecution(selectedChecks, saving)}
>
<EOS_PLAY_CIRCLE className="fill-white inline-block align-sub" />{' '}
Start Execution
</Button>
</Tooltip>
</div>
</div>
</div>
Expand Down

0 comments on commit 28fa39c

Please sign in to comment.