forked from github-starred/komodo
change container start to stop on restarting loop
This commit is contained in:
@@ -57,16 +57,12 @@ const Actions: Component<{}> = (p) => {
|
||||
<Delete />
|
||||
</Flex>
|
||||
</Flex>
|
||||
{/* <Flex class="action shadow">
|
||||
container <Stop />
|
||||
</Flex> */}
|
||||
</Match>
|
||||
|
||||
<Match
|
||||
when={
|
||||
(deployment().status as ContainerStatus).State === "exited" ||
|
||||
(deployment().status as ContainerStatus).State === "created" ||
|
||||
(deployment().status as ContainerStatus).State === "restarting"
|
||||
(deployment().status as ContainerStatus).State === "created"
|
||||
}
|
||||
>
|
||||
<Flex class={combineClasses("action shadow", themeClass())}>
|
||||
@@ -77,6 +73,20 @@ const Actions: Component<{}> = (p) => {
|
||||
<Delete />
|
||||
</Flex>
|
||||
</Flex>
|
||||
</Match>
|
||||
<Match
|
||||
when={
|
||||
(deployment().status as ContainerStatus).State === "restarting"
|
||||
}
|
||||
>
|
||||
<Flex class={combineClasses("action shadow", themeClass())}>
|
||||
deploy{" "}
|
||||
<Flex>
|
||||
<Deploy redeploy />
|
||||
<Stop />
|
||||
<Delete />
|
||||
</Flex>
|
||||
</Flex>
|
||||
{/* <Flex class="action shadow">
|
||||
container <Start />
|
||||
</Flex> */}
|
||||
|
||||
Reference in New Issue
Block a user