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

fix(edge-stacks): take not-found stack as removed EE-6758 (#11248)

This commit is contained in:
cmeng 2024-03-01 11:50:20 +13:00 committed by GitHub
parent 88185d7f6d
commit 385fd95779
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 1 deletions

View file

@ -39,11 +39,13 @@ export function DeploymentCounter({
total: number;
type?: StatusType;
}) {
const width = total ? (count / total) * 100 : 0;
return (
<TooltipWithChildren message={getTooltip(count, total, type)}>
<div className="h-2 w-full overflow-hidden rounded-lg bg-gray-4">
<div
style={{ width: `${(count / total) * 100}%` }}
style={{ width: `${width}%` }}
className={clsx('h-full rounded-lg', {
'bg-success-7': type === StatusType.Running,
'bg-error-7': type === StatusType.Error,