Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Boost Board Game
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mthomas41
Boost Board Game
Commits
0bdc1c48
Commit
0bdc1c48
authored
3 years ago
by
mthomas41
Browse files
Options
Downloads
Patches
Plain Diff
modal will now display the move selected on
parent
a5ccc6c8
Branches
main
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
boost-app/src/features/play/gameTreesSlice.js
+3
-2
3 additions, 2 deletions
boost-app/src/features/play/gameTreesSlice.js
boost-app/src/features/play/scoreSheet.js
+4
-1
4 additions, 1 deletion
boost-app/src/features/play/scoreSheet.js
with
7 additions
and
3 deletions
boost-app/src/features/play/gameTreesSlice.js
+
3
−
2
View file @
0bdc1c48
...
...
@@ -171,6 +171,7 @@ function scanAndDelete(positionIdentity, tree) {
delete
tree
.
positions
[
positionIdentity
];
}
}
const
gameTreesSlice
=
createSlice
({
name
:
'
gameTrees
'
,
initialState
:
{},
...
...
@@ -434,7 +435,7 @@ const gameTreesSlice = createSlice({
if
(
tree
===
undefined
)
{
return
;
}
tree
.
modificationTime
=
impure
.
createTimestamp
();
// updating the modificationTime
tree
.
modificationTime
=
impure
.
createTimestamp
();
let
positionEncoding
=
tree
.
positions
[
positionIdentity
];
let
parent
=
tree
.
positions
[
positionEncoding
.
parentIdentity
];
while
(
parent
!==
undefined
&&
positionEncoding
!==
undefined
)
{
...
...
@@ -457,7 +458,7 @@ const gameTreesSlice = createSlice({
if
(
tree
===
undefined
)
{
return
;
}
tree
.
modificationTime
=
impure
.
createTimestamp
();
// updating the modificationTime
tree
.
modificationTime
=
impure
.
createTimestamp
();
const
positionEncoding
=
tree
.
positions
[
positionIdentity
];
const
parent
=
tree
.
positions
[
positionEncoding
.
parentIdentity
];
tree
.
currentPositionIdentity
=
parent
.
identity
;
...
...
This diff is collapsed.
Click to expand it.
boost-app/src/features/play/scoreSheet.js
+
4
−
1
View file @
0bdc1c48
...
...
@@ -2,7 +2,7 @@ import React, { useRef, useEffect } from 'react';
import
{
useSelector
,
useDispatch
}
from
'
react-redux
'
;
import
{
useHistory
}
from
'
react-router-dom
'
;
import
{
Modal
,
createModalOpener
}
from
'
../../widgets/modal
'
;
import
{
Menu
,
MenuButton
}
from
'
../../widgets/menu.js
'
;
import
{
Menu
,
MenuButton
,
MenuText
}
from
'
../../widgets/menu.js
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
import
styles
from
'
./scoreSheet.module.css
'
;
...
...
@@ -71,6 +71,9 @@ function Move(props) {
<
/button
>
<
Modal
subpath
=
{
`scoresheetmove
${
props
.
move
}
`
}
altText
=
{
'
move selector
'
}
>
<
Menu
>
<
MenuText
>
{
props
.
move
}
<
/MenuText
>
<
MenuButton
onClick
=
{
makingMainline
}
>
MakeLine
<
/MenuButton
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment