Commit bf357ae8 authored by chechunchi's avatar chechunchi

open cardModal when select in selectActionModal

parent 468bd07b
Pipeline #21579 passed with stages
in 17 minutes and 42 seconds
...@@ -20,7 +20,7 @@ const NeosConfig = useConfig(); ...@@ -20,7 +20,7 @@ const NeosConfig = useConfig();
const CANCEL_RESPONSE = -1; const CANCEL_RESPONSE = -1;
const FINISH_RESPONSE = -1; const FINISH_RESPONSE = -1;
const { selectCardActions } = messageStore; const { selectCardActions, cardModal } = messageStore;
export const SelectActionsModal = () => { export const SelectActionsModal = () => {
const snap = useSnapshot(selectCardActions); const snap = useSnapshot(selectCardActions);
...@@ -121,9 +121,13 @@ export const SelectActionsModal = () => { ...@@ -121,9 +121,13 @@ export const SelectActionsModal = () => {
multiple multiple
bordered bordered
size="small" size="small"
onChange={(value) => { onChange={(values: any) => {
// @ts-ignore if (values.length > 0) {
setResponse(value); const meta = values[values.length - 1];
cardModal.meta = meta;
cardModal.isOpen = true;
}
setResponse(values);
}} }}
> >
<Row> <Row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment