mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-28 19:59:46 -05:00
improve deployment network, restart, termination signal config
This commit is contained in:
@@ -68,7 +68,7 @@ export default function DeploymentNetworkSelector({
|
||||
}}
|
||||
disabled={disabled}
|
||||
data={networks}
|
||||
w="fit-content"
|
||||
w={{ base: "100%", xs: "fit-content" }}
|
||||
searchable
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { fmtUpperCamelcase } from "@/lib/formatting";
|
||||
import { ConfigItem } from "@/ui/config/item";
|
||||
import { Select } from "@mantine/core";
|
||||
import { Types } from "komodo_client";
|
||||
@@ -27,13 +28,11 @@ export default function DeploymentRestartSelector({
|
||||
disabled={disabled}
|
||||
placeholder="Select Mode"
|
||||
data={Object.entries(Types.RestartMode).map(([label, value]) => ({
|
||||
label:
|
||||
label === "NoRestart"
|
||||
? "don't restart"
|
||||
: value.split("-").join(" "),
|
||||
label: fmtUpperCamelcase(label),
|
||||
value,
|
||||
}))}
|
||||
w="fit-content"
|
||||
tt="capitalize"
|
||||
w={{ base: "100%", xs: "fit-content" }}
|
||||
/>
|
||||
</ConfigItem>
|
||||
);
|
||||
|
||||
@@ -23,6 +23,7 @@ export function TerminationSignal({
|
||||
disabled={disabled}
|
||||
placeholder="Select signal"
|
||||
data={Object.values(Types.TerminationSignal).reverse()}
|
||||
w={{ base: "100%", xs: "fit-content" }}
|
||||
/>
|
||||
</ConfigItem>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user