Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos
Commits
bf357ae8
Commit
bf357ae8
authored
May 10, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
open cardModal when select in selectActionModal
parent
468bd07b
Pipeline
#21579
passed with stages
in 17 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/ui/Duel/Message/SelectActionsModal.tsx
src/ui/Duel/Message/SelectActionsModal.tsx
+8
-4
No files found.
src/ui/Duel/Message/SelectActionsModal.tsx
View file @
bf357ae8
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment