Merge pull request #2525 from openvinotoolkit/bs/clear_storage

Reset state after logout & changing a job
main
Boris Sekachev 5 years ago committed by GitHub
commit e5356cd887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Disabled position editing in AAM (<https://github.com/openvinotoolkit/cvat/pull/2506>)
- TypeError: Cannot read property 'toString' of undefined (<https://github.com/openvinotoolkit/cvat/pull/2517>)
- Extra shapes are drawn after Esc, or G pressed while drawing a region in grouping (<https://github.com/openvinotoolkit/cvat/pull/2507>)
- Reset state (reviews, issues) after logout or changing a job (<https://github.com/openvinotoolkit/cvat/pull/2525>)
### Security

@ -1,6 +1,6 @@
{
"name": "cvat-ui",
"version": "1.11.4",
"version": "1.11.5",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

@ -1,6 +1,6 @@
{
"name": "cvat-ui",
"version": "1.11.4",
"version": "1.11.5",
"description": "CVAT single-page application",
"main": "src/index.tsx",
"scripts": {

@ -5,6 +5,7 @@
import consts from 'consts';
import { AnnotationActionTypes } from 'actions/annotation-actions';
import { ReviewActionTypes } from 'actions/review-actions';
import { AuthActionTypes } from 'actions/auth-actions';
import { ReviewState } from './interfaces';
const defaultState: ReviewState = {
@ -184,6 +185,10 @@ export default function (state: ReviewState = defaultState, action: any): Review
issuesHidden: hidden,
};
}
case AnnotationActionTypes.CLOSE_JOB:
case AuthActionTypes.LOGOUT_SUCCESS: {
return { ...defaultState };
}
default:
return state;
}

Loading…
Cancel
Save