diff --git a/cvat-ui/src/components/annotation-page/top-bar/annotation-menu.tsx b/cvat-ui/src/components/annotation-page/top-bar/annotation-menu.tsx index 6093a76bc1a1..9f4d7910e04d 100644 --- a/cvat-ui/src/components/annotation-page/top-bar/annotation-menu.tsx +++ b/cvat-ui/src/components/annotation-page/top-bar/annotation-menu.tsx @@ -18,7 +18,9 @@ import { MenuInfo } from 'rc-menu/lib/interface'; import CVATTooltip from 'components/common/cvat-tooltip'; import LoadSubmenu from 'components/actions-menu/load-submenu'; import getCore from 'cvat-core-wrapper'; -import { JobStage } from 'reducers/interfaces'; +import { CombinedState, JobStage } from 'reducers/interfaces'; +import Button from 'antd/lib/button'; +import { useSelector } from 'react-redux'; const core = getCore(); @@ -46,6 +48,9 @@ export enum Actions { } function AnnotationMenuComponent(props: Props & RouteComponentProps): JSX.Element { + const udata = useSelector((state: CombinedState) => state.gamifuserdata); + const { userId } = udata; + const SURVEY_URL = `https://www.soscisurvey.de/cvat_eval/?act=SenrPcnqaSDDmONMFEefpjXN&r=${userId}-4`; const { loaders, loadActivity, @@ -161,7 +166,25 @@ function AnnotationMenuComponent(props: Props & RouteComponentProps): JSX.Elemen } else if (params.key === Actions.FINISH_JOB) { Modal.confirm({ title: 'The job stage is going to be switched', - content: 'Stage will be changed to "acceptance". Would you like to continue?', + content: ( +
Stage will be changed to "acceptance". Would you like to continue?
+Please remember to fill out the survey if this is your last job for this day.
+ +