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
84b388d9
Commit
84b388d9
authored
Jul 28, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
display disabled for select modal
parent
7b939eba
Pipeline
#28745
passed with stages
in 14 minutes and 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
src/service/utils/fetchCheckCardMeta.ts
src/service/utils/fetchCheckCardMeta.ts
+2
-0
src/ui/Duel/Message/SelectCardsModal/index.tsx
src/ui/Duel/Message/SelectCardsModal/index.tsx
+2
-0
No files found.
src/service/utils/fetchCheckCardMeta.ts
View file @
84b388d9
import
type
{
ygopro
}
from
"
@/api
"
;
import
{
fetchCard
,
getCardStr
}
from
"
@/api/cards
"
;
import
{
Context
}
from
"
@/container
"
;
import
{
isCardDisabled
}
from
"
@/stores
"
;
import
type
{
Option
}
from
"
@/ui/Duel/Message
"
;
const
helper
=
async
(
...
...
@@ -52,6 +53,7 @@ const helper = async (
effectDesc
,
response
,
targeted
:
target
?.
targeted
,
disabled
:
target
?
isCardDisabled
(
target
)
:
false
,
};
if
(
selected
)
{
...
...
src/ui/Duel/Message/SelectCardsModal/index.tsx
View file @
84b388d9
...
...
@@ -197,6 +197,7 @@ export const SelectCardsModal: React.FC<SelectCardsModalProps> = ({
<
YgoCard
code=
{
card
.
meta
.
id
}
targeted=
{
card
.
targeted
}
disabled=
{
card
.
disabled
}
className=
{
styles
.
card
}
/>
}
...
...
@@ -286,6 +287,7 @@ export interface Option {
level2
?:
number
;
response
?:
number
;
targeted
?:
boolean
;
disabled
?:
boolean
;
// 便于直接返回这个信息
//
// 尽量不要用这个字段
...
...
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