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
12eb6029
Commit
12eb6029
authored
Jun 25, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: menu global disable
parent
0a5d3a8e
Pipeline
#22401
failed with stages
in 11 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/ui/Duel/PlayMat/Menu/index.tsx
src/ui/Duel/PlayMat/Menu/index.tsx
+10
-1
No files found.
src/ui/Duel/PlayMat/Menu/index.tsx
View file @
12eb6029
...
...
@@ -32,6 +32,7 @@ const { phase } = matStore;
const
{
useToken
}
=
theme
;
export
const
Menu
=
()
=>
{
const
snapPhase
=
useSnapshot
(
phase
);
const
{
currentPlayer
}
=
useSnapshot
(
matStore
);
const
currentPhase
=
snapPhase
.
currentPhase
;
const
response
=
[
...
...
@@ -94,6 +95,8 @@ export const Menu = () => {
const
[
showRendererTooltips
,
setShowRendererTooltips
]
=
useState
<
boolean
|
undefined
>
(
undefined
);
const
globalDisable
=
!
matStore
.
isMe
(
currentPlayer
);
return
(
<>
<
div
className=
"menu-container"
>
...
...
@@ -109,16 +112,22 @@ export const Menu = () => {
</
div
>
)
}
arrow
disabled=
{
globalDisable
}
>
<
Button
icon=
{
<
StepForwardFilled
style=
{
{
transform
:
"
scale(1.5)
"
}
}
/>
}
type=
"text"
disabled=
{
globalDisable
}
>
{
phaseBind
.
find
(([
key
])
=>
key
===
currentPhase
)?.[
1
]
}
</
Button
>
</
Dropdown
>
<
Tooltip
title=
"聊天室"
>
<
Button
icon=
{
<
MessageFilled
/>
}
type=
"text"
></
Button
>
<
Button
icon=
{
<
MessageFilled
/>
}
type=
"text"
disabled=
{
globalDisable
}
></
Button
>
</
Tooltip
>
<
Tooltip
title=
"投降"
color=
"red"
open=
{
showRendererTooltips
}
>
<
Popconfirm
...
...
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