1
0
Fork 0
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:
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

@ -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}