fix(home): show tooltip for disabled envs [EE-4859] (#8283)

pull/8454/head
Chaim Lev-Ari 2023-02-03 02:54:00 +05:30 committed by GitHub
parent 921e9cfc6e
commit 968fc98401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -13,7 +13,6 @@
.btn[disabled],
fieldset[disabled] .btn {
@apply opacity-40;
pointer-events: none;
touch-action: none;
}

View File

@ -43,6 +43,11 @@ export function EnvironmentBrowseButtons({
size="medium"
color="light"
className="w-full !py-0 !m-0"
title={
!isEdgeAsync
? 'Browse snapshot is only available for async environments'
: ''
}
>
Browse snapshot
</LinkButton>
@ -60,7 +65,11 @@ export function EnvironmentBrowseButtons({
{browseStatus !== 'connected' ? (
<LinkButton
title="Live connection is not available for async environments"
title={
isEdgeAsync
? 'Live connection is not available for async environments'
: ''
}
icon={Wifi}
disabled={isEdgeAsync}
to={dashboardRoute.to}