Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
teknikattan-scoring-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tddd96-grupp1
teknikattan-scoring-system
Commits
6edbbcde
Commit
6edbbcde
authored
3 years ago
by
Max Rüdiger
Browse files
Options
Downloads
Patches
Plain Diff
fix: operator go back bug
parent
7ef2d370
No related branches found
No related tags found
1 merge request
!107
fix: operator go back bug
Pipeline
#42841
passed with warnings
3 years ago
Stage: setup
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/src/pages/views/OperatorViewPage.tsx
+7
-1
7 additions, 1 deletion
client/src/pages/views/OperatorViewPage.tsx
with
7 additions
and
1 deletion
client/src/pages/views/OperatorViewPage.tsx
+
7
−
1
View file @
6edbbcde
...
...
@@ -21,7 +21,7 @@ import BackspaceIcon from '@material-ui/icons/Backspace'
import
ChevronLeftIcon
from
'
@material-ui/icons/ChevronLeft
'
import
ChevronRightIcon
from
'
@material-ui/icons/ChevronRight
'
import
TimerIcon
from
'
@material-ui/icons/Timer
'
import
React
,
{
useEffect
}
from
'
react
'
import
React
,
{
useEffect
,
useState
}
from
'
react
'
import
{
useHistory
,
useParams
}
from
'
react-router-dom
'
import
{
getPresentationCompetition
,
setPresentationCode
}
from
'
../../actions/presentation
'
import
{
useAppDispatch
,
useAppSelector
}
from
'
../../hooks
'
...
...
@@ -92,6 +92,12 @@ const OperatorViewPage: React.FC = () => {
// console.log(id)
},
[])
window
.
onpopstate
=
()
=>
{
//Handle browser back arrow
alert
(
'
Tävlingen avslutas för alla
'
)
endCompetition
()
}
const
handleOpenPopover
=
(
event
:
React
.
MouseEvent
<
HTMLButtonElement
>
)
=>
{
setAnchorEl
(
event
.
currentTarget
)
}
...
...
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