mirror of
https://github.com/portainer/portainer.git
synced 2025-08-03 04:45:21 +02:00
fix(home): show tooltip for disabled envs [EE-4859] (#8283)
This commit is contained in:
parent
921e9cfc6e
commit
968fc98401
2 changed files with 10 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue