Skip to content

Commit

Permalink
✨ handleSet
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Feb 27, 2022
1 parent 769b92d commit 75de105
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/pages/annotation/ActionTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@
style="width: 100%"
@click="handleGoto(props.row)"
></q-btn>
<q-btn
flat
dense
icon="edit_location_alt"
style="width: 100%"
@click="handleSet(props.row)"
></q-btn>
<q-btn
flat
dense
Expand Down Expand Up @@ -329,6 +336,10 @@ const handleGoto = (row) => {
annotationStore.rightCurrentFrame = utils.time2index(row.end)
}
}
const handleSet = (row) =>{
row.start = utils.index2time(annotationStore.leftCurrentFrame)
row.end = utils.index2time(annotationStore.rightCurrentFrame)
}
const handleDelete = (row) => {
utils.confirm('Are you sure to delete this action?').onOk(() => {
for (let i in annotationStore.actionAnnotationList) {
Expand Down

0 comments on commit 75de105

Please sign in to comment.