summaryrefslogtreecommitdiff
path: root/src/reducer/anastasis_api_redux.c
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-10-11 18:53:24 +0200
committerFlorian Dold <florian@dold.me>2021-10-11 18:53:24 +0200
commitca2a2b904a74ca7a0e153932e88181f61cb9a118 (patch)
tree2919b0c660c881ee309f324da6895a69baa28d6b /src/reducer/anastasis_api_redux.c
parentce961ab6f352bc26f244185e693dfc882151c3d0 (diff)
downloadanastasis-ca2a2b904a74ca7a0e153932e88181f61cb9a118.tar.gz
anastasis-ca2a2b904a74ca7a0e153932e88181f61cb9a118.tar.bz2
anastasis-ca2a2b904a74ca7a0e153932e88181f61cb9a118.zip
allow 'back' to unselect country
Diffstat (limited to 'src/reducer/anastasis_api_redux.c')
-rw-r--r--src/reducer/anastasis_api_redux.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/reducer/anastasis_api_redux.c b/src/reducer/anastasis_api_redux.c
index 59770f3..27b17f8 100644
--- a/src/reducer/anastasis_api_redux.c
+++ b/src/reducer/anastasis_api_redux.c
@@ -1764,6 +1764,7 @@ ANASTASIS_redux_action (const json_t *state,
"select_continent",
&select_continent
},
+ /* Deprecated alias for "back" from that state, should be removed eventually. */
{
ANASTASIS_GENERIC_STATE_COUNTRY_SELECTING,
"unselect_continent",
@@ -1771,6 +1772,11 @@ ANASTASIS_redux_action (const json_t *state,
},
{
ANASTASIS_GENERIC_STATE_COUNTRY_SELECTING,
+ "back",
+ &unselect_continent
+ },
+ {
+ ANASTASIS_GENERIC_STATE_COUNTRY_SELECTING,
"select_country",
&select_country
},
@@ -1780,11 +1786,6 @@ ANASTASIS_redux_action (const json_t *state,
&select_continent
},
{
- ANASTASIS_GENERIC_STATE_COUNTRY_SELECTING,
- "unselect_continent",
- &unselect_continent
- },
- {
ANASTASIS_GENERIC_STATE_USER_ATTRIBUTES_COLLECTING,
"enter_user_attributes",
&enter_user_attributes