-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactions.js
106 lines (82 loc) · 1.7 KB
/
actions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
export const setTrackData = (data) => ({
type: 'SET_TRACKDATA',
data: data
})
export const setTrackGraph = (data) => ({
type: 'SET_TRACK_GRAPH',
data: data
})
export const showTrackGoal = (goal) => ({
type: 'SHOW_TRACK_GOAL',
goal: goal
})
export const hideTrackGoal = () => ({
type: 'HIDE_TRACK_GOAL'
})
export const showAddGoal = () => ({
type: 'SHOW_ADD_GOAL'
})
export const hideAddGoal = () => ({
type: 'HIDE_ADD_GOAL'
})
export const showSelectMap = () => ({
type: 'SHOW_SELECT_MAP'
})
export const hideSelectMap = () => ({
type: 'HIDE_SELECT_MAP'
})
export const mapChanged = (map) => ({
type: 'MAP_CHANGED',
map: map
})
export const showRename = () => ({
type: 'SHOW_RENAME'
})
export const hideRename = () => ({
type: 'HIDE_RENAME'
})
export const showLink = () => ({
type: 'SHOW_LINK'
})
export const hideLink = () => ({
type: 'HIDE_LINK'
})
export const showSave = () => ({
type: 'SHOW_SAVE'
})
export const hideSave = () => ({
type: 'HIDE_SAVE'
})
export const doneSave = () => ({
type: 'DONE_SAVE'
})
export const showLoading = () => ({
type: 'SHOW_LOADING'
})
export const hideLoading = () => ({
type: 'HIDE_LOADING'
})
export const showSnackbar = (message) => ({
type: 'SHOW_SNACKBAR',
message: message
})
export const hideSnackbar = () => ({
type: 'HIDE_SNACKBAR'
})
export const showTrackGoalEdit = (goal) => ({
type: 'SHOW_TRACK_GOAL_EDIT',
goal: goal
})
export const hideTrackGoalEdit = () => ({
type: 'HIDE_TRACK_GOAL_EDIT'
})
export const editTrackGoalEdit = () => ({
type: 'EDIT_TRACK_GOAL_EDIT'
})
export const showTrackGoalAdd = (goal) => ({
type: 'SHOW_TRACK_GOAL_ADD',
goal: goal
})
export const hideTrackGoalAdd = () => ({
type: 'HIDE_TRACK_GOAL_ADD'
})