mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-26 23:12:17 +00:00
Compose domains are rendered as docker labels and only take effect on the next deployment. Extract the "redeploy required" notice into a reusable component/strings and surface it consistently: as a banner in the domains list, in the add/edit dialog (replacing the inline copy), and in the toast shown after create/update/delete. Unify grid deletion onto the shared handler so the hint applies in both grid and table views. Groundwork for the upcoming domain enable/disable toggle. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
20 lines
765 B
TypeScript
20 lines
765 B
TypeScript
import { AlertBlock } from "@/components/shared/alert-block";
|
|
|
|
/**
|
|
* Domains attached to a compose service are rendered as docker labels and only
|
|
* take effect on the next deployment. These strings keep the "redeploy required"
|
|
* wording consistent across the add/edit dialog, the domains list and the
|
|
* toasts shown after create/update/delete/toggle operations.
|
|
*/
|
|
export const COMPOSE_REDEPLOY_HINT =
|
|
"Whenever you make changes to domains, remember to redeploy your compose to apply the changes.";
|
|
|
|
export const COMPOSE_REDEPLOY_TOAST =
|
|
"Redeploy the compose to apply the changes.";
|
|
|
|
export const ComposeRedeployAlert = ({ className }: { className?: string }) => (
|
|
<AlertBlock type="info" className={className}>
|
|
{COMPOSE_REDEPLOY_HINT}
|
|
</AlertBlock>
|
|
);
|