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:
parent
88185d7f6d
commit
385fd95779
3 changed files with 14 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue