mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-11 17:44:19 -05:00
only show redeploy on build if image type if Build
This commit is contained in:
@@ -79,7 +79,7 @@ export const Config = <T,>({
|
||||
string,
|
||||
{
|
||||
[K in keyof Partial<T>]:
|
||||
| true
|
||||
| boolean
|
||||
| ((value: T[K], set: (value: Partial<T>) => void) => ReactNode);
|
||||
}
|
||||
>
|
||||
@@ -156,7 +156,7 @@ export const ConfigAgain = <
|
||||
update: Partial<T>;
|
||||
components: Partial<{
|
||||
[K in keyof T extends string ? keyof T : never]:
|
||||
| true
|
||||
| boolean
|
||||
| ((value: T[K], set: (value: Partial<T>) => void) => ReactNode);
|
||||
}>;
|
||||
set: (value: Partial<T>) => void;
|
||||
@@ -200,6 +200,8 @@ export const ConfigAgain = <
|
||||
default:
|
||||
return <div>{key.toString()}</div>;
|
||||
}
|
||||
} else if (component === false) {
|
||||
return <Fragment key={key.toString()} />;
|
||||
}
|
||||
return (
|
||||
<Fragment key={key.toString()}>{component?.(value, set)}</Fragment>
|
||||
|
||||
@@ -100,7 +100,7 @@ export const DeploymentConfig = ({ id }: { id: string }) => {
|
||||
},
|
||||
settings: {
|
||||
send_alerts: true,
|
||||
redeploy_on_build: true,
|
||||
redeploy_on_build: (update.image?.type || config.image?.type) === "Build",
|
||||
},
|
||||
},
|
||||
environment: {
|
||||
|
||||
@@ -137,7 +137,6 @@ export const WebsocketProvider = ({
|
||||
ws?.addEventListener("message", on_message_fn);
|
||||
ws?.addEventListener("close", on_close_fn);
|
||||
return () => {
|
||||
ws?.close();
|
||||
ws?.removeEventListener("open", on_open_fn);
|
||||
ws?.removeEventListener("message", on_message_fn);
|
||||
ws?.removeEventListener("close", on_close_fn);
|
||||
|
||||
Reference in New Issue
Block a user