mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
added gpx dialog
This commit is contained in:
parent
947ec69e60
commit
e995b46641
33 changed files with 11687 additions and 131 deletions
|
@ -151,3 +151,18 @@ export const editorSetDirection = (drawing_direction: IEditorState['drawing_dire
|
|||
type: EDITOR_ACTIONS.SET_DIRECTION,
|
||||
drawing_direction,
|
||||
});
|
||||
|
||||
export const editorSetGpx = (gpx: Partial<IEditorState['gpx']>) => ({
|
||||
type: EDITOR_ACTIONS.SET_GPX,
|
||||
gpx,
|
||||
});
|
||||
|
||||
export const editorUploadGpx = (file: File) => ({
|
||||
type: EDITOR_ACTIONS.UPLOAD_GPX,
|
||||
file,
|
||||
});
|
||||
|
||||
export const editorDropGpx = (index: number) => ({
|
||||
type: EDITOR_ACTIONS.DROP_GPX,
|
||||
index,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue