mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-23 12:18:46 +00:00
fix(domains): add status tooltip to table
This commit is contained in:
@@ -267,6 +267,9 @@ export const createColumns = ({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
<TooltipProvider>
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger asChild>
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<Switch
|
<Switch
|
||||||
checked={domain.enabled}
|
checked={domain.enabled}
|
||||||
@@ -274,6 +277,16 @@ export const createColumns = ({
|
|||||||
disabled={isToggling}
|
disabled={isToggling}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent>
|
||||||
|
<p>
|
||||||
|
{domain.enabled
|
||||||
|
? "Domain is active. Toggle to disable routing without deleting it."
|
||||||
|
: "Domain is disabled and not routed. Toggle to enable it again."}
|
||||||
|
</p>
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</TooltipProvider>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user