Skip to content

Commit

Permalink
Merge pull request bruin-tennis-consulting#223 from bruin-tennis-cons…
Browse files Browse the repository at this point in the history
…ulting/development

Development
  • Loading branch information
Fredenck authored Oct 29, 2024
2 parents 69d2498 + ea0a911 commit d48f028
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion app/services/taggerButtonData.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,26 @@ export const getTaggerButtonData = (
setCurrentPage('FirstServe')
}
},
{
label: '40-0',
action: (data) => {
addNewRow()
updateActiveRow('pointScore', '40-0')
updateActiveRow(
'gameScore',
data.table[data.activeRowIndex - 1].gameScore
)
updateActiveRow(
'setScore',
data.table[data.activeRowIndex - 1].setScore
)
updateActiveRow('isPointStart', 1)
updateActiveRow('shotInRally', 1)
updateActiveRow('side', 'Ad')
updateActiveRow('pointStartTime', data.videoTimestamp)
setCurrentPage('FirstServe')
}
},
{
label: '15-30',
action: (data) => {
Expand Down Expand Up @@ -537,6 +557,12 @@ export const getTaggerButtonData = (
isAce = true
}
},
{
label: 'Let',
action: (data) => {
updateActiveRow('isLet', '1')
}
},
{
courtImage: 'serve',
label: 'Select First Serve Position',
Expand Down Expand Up @@ -570,7 +596,7 @@ export const getTaggerButtonData = (
updateActiveRow('firstServeZone', 'Wide')
if ((data.y >= 10) & (data.y <= 245)) {
updateActiveRow('firstServeIn', '1')
if (isAce === '1') {
if (isAce) {
ace(serverName)
setCurrentPage('PointScore')
} else {
Expand Down Expand Up @@ -786,6 +812,12 @@ export const getTaggerButtonData = (
isAce = true
}
},
{
label: 'Let',
action: (data) => {
updateActiveRow('isLet', '1')
}
},
{
courtImage: 'serve',
label: 'Select Second Serve Position',
Expand Down Expand Up @@ -1367,6 +1399,7 @@ export const columnNames = [
'secondServeXCoord',
'secondServeYCoord',
'isAce',
'isLet',
'shotContactX',
'shotContactY',
'shotDirection',
Expand Down

0 comments on commit d48f028

Please sign in to comment.