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],
|
.btn[disabled],
|
||||||
fieldset[disabled] .btn {
|
fieldset[disabled] .btn {
|
||||||
@apply opacity-40;
|
@apply opacity-40;
|
||||||
pointer-events: none;
|
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,11 @@ export function EnvironmentBrowseButtons({
|
||||||
size="medium"
|
size="medium"
|
||||||
color="light"
|
color="light"
|
||||||
className="w-full !py-0 !m-0"
|
className="w-full !py-0 !m-0"
|
||||||
|
title={
|
||||||
|
!isEdgeAsync
|
||||||
|
? 'Browse snapshot is only available for async environments'
|
||||||
|
: ''
|
||||||
|
}
|
||||||
>
|
>
|
||||||
Browse snapshot
|
Browse snapshot
|
||||||
</LinkButton>
|
</LinkButton>
|
||||||
|
@ -60,7 +65,11 @@ export function EnvironmentBrowseButtons({
|
||||||
|
|
||||||
{browseStatus !== 'connected' ? (
|
{browseStatus !== 'connected' ? (
|
||||||
<LinkButton
|
<LinkButton
|
||||||
title="Live connection is not available for async environments"
|
title={
|
||||||
|
isEdgeAsync
|
||||||
|
? 'Live connection is not available for async environments'
|
||||||
|
: ''
|
||||||
|
}
|
||||||
icon={Wifi}
|
icon={Wifi}
|
||||||
disabled={isEdgeAsync}
|
disabled={isEdgeAsync}
|
||||||
to={dashboardRoute.to}
|
to={dashboardRoute.to}
|
||||||
|
|
Loading…
Reference in New Issue