1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-09 15:55:23 +02:00

po feedback

This commit is contained in:
testa113 2023-12-14 16:52:00 +13:00 committed by testa113
parent 2cf7ef90bf
commit 218a32a49f
2 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,5 @@
import { PropsWithChildren, ReactNode, useState } from 'react';
import { ChevronUp, ChevronRight } from 'lucide-react';
import { ChevronUp, ChevronDown } from 'lucide-react';
import { Icon } from '@@/Icon';
@ -42,7 +42,7 @@ export function FormSection({
className="mx-2 !ml-0 inline-flex w-2 items-center justify-center border-0 bg-transparent"
>
<Icon
icon={isExpanded ? ChevronUp : ChevronRight}
icon={isExpanded ? ChevronUp : ChevronDown}
className="shrink-0"
/>
</button>

View file

@ -1,6 +1,7 @@
import { Form, Formik, FormikHelpers, useFormikContext } from 'formik';
import { useRef, useState } from 'react';
import { RefreshCw } from 'lucide-react';
import { useRouter } from '@uirouter/react';
import { Stack, StackId } from '@/react/common/stacks/types';
import {
@ -192,6 +193,7 @@ function RedeployGitAppInnerForm({
namespaceName: string;
webhookId: string;
}) {
const router = useRouter();
const environmentId = useEnvironmentId();
const redeployKubeGitStackMutation = useRedeployKubeGitStackMutation(
stack.Id,
@ -323,6 +325,9 @@ function RedeployGitAppInnerForm({
await redeployKubeGitStackMutation.mutateAsync(redeployPayload, {
onSuccess: () => {
notifySuccess('Success', 'Application redeployed successfully.');
router.stateService.go('kubernetes.applications.application', {
id: stack.Id,
});
},
});