mirror of https://github.com/portainer/portainer
fix(home): show tooltip for disabled envs [EE-4859] (#8283)
parent
921e9cfc6e
commit
968fc98401
|
@ -13,7 +13,6 @@
|
|||
.btn[disabled],
|
||||
fieldset[disabled] .btn {
|
||||
@apply opacity-40;
|
||||
pointer-events: none;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue