1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 14:59:41 +02:00

fix(volumes): update external labels CE [r8s-108] (#7)

This commit is contained in:
Ali 2024-10-14 10:48:13 +13:00 committed by GitHub
parent 57e10dc911
commit fd0bc652a9
8 changed files with 10 additions and 8 deletions

View file

@ -8,7 +8,7 @@ import { ExternalBadge } from '@@/Badge/ExternalBadge';
import { UnusedBadge } from '@@/Badge/UnusedBadge';
import { useNamespacesQuery } from '../../namespaces/queries/useNamespacesQuery';
import { isVolumeExternal, isVolumeUsed } from '../utils';
import { isVolumeUsed } from '../utils';
import { VolumeViewModel } from './types';
import { helper } from './columns.helper';
@ -44,7 +44,7 @@ export function NameCell({
<SystemBadge />
) : (
<>
{isVolumeExternal(item) && <ExternalBadge />}
{item.PersistentVolumeClaim.IsExternal && <ExternalBadge />}
{!isVolumeUsed(item) && <UnusedBadge />}
</>
)}