From b78e56b3cc17007210ea2befc0db989293bdbae9 Mon Sep 17 00:00:00 2001 From: Antoine <antoine.roy@tetras-libre.fr> Date: Thu, 30 Nov 2023 11:16:23 +0100 Subject: [PATCH] Delete END & START buttons. Updating handlechangetime function ton intehrate the buttons comportement --- src/AnnotationCreation.js | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/AnnotationCreation.js b/src/AnnotationCreation.js index ca5eb24..0bdf495 100644 --- a/src/AnnotationCreation.js +++ b/src/AnnotationCreation.js @@ -241,6 +241,8 @@ class AnnotationCreation extends Component { console.log(VideosReferences.valueOf()); this.updateTstart(timeStart); this.updateTend(timeEnd); + this.seekToTstart(); + this.seekToTend(); }; /** */ @@ -402,29 +404,10 @@ class AnnotationCreation extends Component { max = {2000} /> </Grid> - <Grid item xs={12}> - <ToggleButton value="true" title="Go to start time" size="small" onClick={this.seekToTstart} className={classes.timecontrolsbutton}> - <LastPage /> - </ToggleButton> - <Typography variant="overline"> - Start - </Typography> - </Grid> - <ToggleButton value="true" title="Set current time" size="small" onClick={this.setTstartNow} className={classes.timecontrolsbutton}> <Alarm /> </ToggleButton> <HMSInput seconds={tstart} onChange={this.updateTstart} /> - - <Grid item xs={12}> - <Typography variant="overline"> - <ToggleButton value="true" title="Go to end time" size="small" onClick={this.seekToTend} className={classes.timecontrolsbutton}> - <LastPage /> - </ToggleButton> - End - </Typography> - </Grid> - <Grid item xs={12} className={classes.paper}> <ToggleButton value="true" title="Set current time" size="small" onClick={this.setTendNow} className={classes.timecontrolsbutton}> <Alarm /> -- GitLab