mirror of
https://github.com/portainer/portainer.git
synced 2025-08-10 08:15:25 +02:00
po feedback
This commit is contained in:
parent
2cf7ef90bf
commit
218a32a49f
2 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { PropsWithChildren, ReactNode, useState } from 'react';
|
import { PropsWithChildren, ReactNode, useState } from 'react';
|
||||||
import { ChevronUp, ChevronRight } from 'lucide-react';
|
import { ChevronUp, ChevronDown } from 'lucide-react';
|
||||||
|
|
||||||
import { Icon } from '@@/Icon';
|
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"
|
className="mx-2 !ml-0 inline-flex w-2 items-center justify-center border-0 bg-transparent"
|
||||||
>
|
>
|
||||||
<Icon
|
<Icon
|
||||||
icon={isExpanded ? ChevronUp : ChevronRight}
|
icon={isExpanded ? ChevronUp : ChevronDown}
|
||||||
className="shrink-0"
|
className="shrink-0"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { Form, Formik, FormikHelpers, useFormikContext } from 'formik';
|
import { Form, Formik, FormikHelpers, useFormikContext } from 'formik';
|
||||||
import { useRef, useState } from 'react';
|
import { useRef, useState } from 'react';
|
||||||
import { RefreshCw } from 'lucide-react';
|
import { RefreshCw } from 'lucide-react';
|
||||||
|
import { useRouter } from '@uirouter/react';
|
||||||
|
|
||||||
import { Stack, StackId } from '@/react/common/stacks/types';
|
import { Stack, StackId } from '@/react/common/stacks/types';
|
||||||
import {
|
import {
|
||||||
|
@ -192,6 +193,7 @@ function RedeployGitAppInnerForm({
|
||||||
namespaceName: string;
|
namespaceName: string;
|
||||||
webhookId: string;
|
webhookId: string;
|
||||||
}) {
|
}) {
|
||||||
|
const router = useRouter();
|
||||||
const environmentId = useEnvironmentId();
|
const environmentId = useEnvironmentId();
|
||||||
const redeployKubeGitStackMutation = useRedeployKubeGitStackMutation(
|
const redeployKubeGitStackMutation = useRedeployKubeGitStackMutation(
|
||||||
stack.Id,
|
stack.Id,
|
||||||
|
@ -323,6 +325,9 @@ function RedeployGitAppInnerForm({
|
||||||
await redeployKubeGitStackMutation.mutateAsync(redeployPayload, {
|
await redeployKubeGitStackMutation.mutateAsync(redeployPayload, {
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
notifySuccess('Success', 'Application redeployed successfully.');
|
notifySuccess('Success', 'Application redeployed successfully.');
|
||||||
|
router.stateService.go('kubernetes.applications.application', {
|
||||||
|
id: stack.Id,
|
||||||
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue