fix(striker-ui): add form summary to manage manifest forms

main
Tsu-ba-me 1 year ago
parent 382640bad0
commit 07e04a970a
  1. 8
      striker-ui/components/ManageManifest/ManageManifestPanel.tsx

@ -26,6 +26,7 @@ import ConfirmDialog from '../ConfirmDialog';
import EditManifestInputGroup from './EditManifestInputGroup'; import EditManifestInputGroup from './EditManifestInputGroup';
import FlexBox from '../FlexBox'; import FlexBox from '../FlexBox';
import FormDialog from '../FormDialog'; import FormDialog from '../FormDialog';
import FormSummary from '../FormSummary';
import handleAPIError from '../../lib/handleAPIError'; import handleAPIError from '../../lib/handleAPIError';
import IconButton from '../IconButton'; import IconButton from '../IconButton';
import List from '../List'; import List from '../List';
@ -282,7 +283,7 @@ const ManageManifestPanel: FC = () => {
setConfirmDialogProps({ setConfirmDialogProps({
actionProceedText: 'Add', actionProceedText: 'Add',
content: <></>, content: <FormSummary entries={body} />,
onProceedAppend: () => { onProceedAppend: () => {
submitForm({ submitForm({
body, body,
@ -329,7 +330,7 @@ const ManageManifestPanel: FC = () => {
setConfirmDialogProps({ setConfirmDialogProps({
actionProceedText: 'Edit', actionProceedText: 'Edit',
content: <></>, content: <FormSummary entries={body} />,
onProceedAppend: () => { onProceedAppend: () => {
submitForm({ submitForm({
body, body,
@ -380,7 +381,7 @@ const ManageManifestPanel: FC = () => {
setConfirmDialogProps({ setConfirmDialogProps({
actionProceedText: 'Run', actionProceedText: 'Run',
content: <></>, content: <FormSummary entries={body} hasPassword />,
onProceedAppend: () => { onProceedAppend: () => {
submitForm({ submitForm({
body, body,
@ -614,6 +615,7 @@ const ManageManifestPanel: FC = () => {
closeOnProceed closeOnProceed
{...confirmDialogProps} {...confirmDialogProps}
ref={confirmDialogRef} ref={confirmDialogRef}
scrollContent
/> />
</> </>
); );

Loading…
Cancel
Save