|
|
|
@ -973,6 +973,8 @@ export function getJobAsync(
|
|
|
|
export function saveAnnotationsAsync(sessionInstance: any):
|
|
|
|
export function saveAnnotationsAsync(sessionInstance: any):
|
|
|
|
ThunkAction<Promise<void>, {}, {}, AnyAction> {
|
|
|
|
ThunkAction<Promise<void>, {}, {}, AnyAction> {
|
|
|
|
return async (dispatch: ActionCreator<Dispatch>): Promise<void> => {
|
|
|
|
return async (dispatch: ActionCreator<Dispatch>): Promise<void> => {
|
|
|
|
|
|
|
|
const { filters, frame, showAllInterpolationTracks } = receiveAnnotationsParameters();
|
|
|
|
|
|
|
|
|
|
|
|
dispatch({
|
|
|
|
dispatch({
|
|
|
|
type: AnnotationActionTypes.SAVE_ANNOTATIONS,
|
|
|
|
type: AnnotationActionTypes.SAVE_ANNOTATIONS,
|
|
|
|
payload: {},
|
|
|
|
payload: {},
|
|
|
|
@ -992,6 +994,8 @@ ThunkAction<Promise<void>, {}, {}, AnyAction> {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const states = await sessionInstance
|
|
|
|
|
|
|
|
.annotations.get(frame, showAllInterpolationTracks, filters);
|
|
|
|
await saveJobEvent.close();
|
|
|
|
await saveJobEvent.close();
|
|
|
|
await sessionInstance.logger.log(
|
|
|
|
await sessionInstance.logger.log(
|
|
|
|
LogType.sendTaskInfo,
|
|
|
|
LogType.sendTaskInfo,
|
|
|
|
@ -1001,7 +1005,9 @@ ThunkAction<Promise<void>, {}, {}, AnyAction> {
|
|
|
|
|
|
|
|
|
|
|
|
dispatch({
|
|
|
|
dispatch({
|
|
|
|
type: AnnotationActionTypes.SAVE_ANNOTATIONS_SUCCESS,
|
|
|
|
type: AnnotationActionTypes.SAVE_ANNOTATIONS_SUCCESS,
|
|
|
|
payload: {},
|
|
|
|
payload: {
|
|
|
|
|
|
|
|
states,
|
|
|
|
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} catch (error) {
|
|
|
|
} catch (error) {
|
|
|
|
dispatch({
|
|
|
|
dispatch({
|
|
|
|
|