aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/ducks
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/ducks')
-rw-r--r--web/src/js/ducks/options.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/src/js/ducks/options.js b/web/src/js/ducks/options.js
index 06144a3c..0da0fb8c 100644
--- a/web/src/js/ducks/options.js
+++ b/web/src/js/ducks/options.js
@@ -44,3 +44,7 @@ export function update(option, value) {
sendUpdate(option, value, dispatch);
}
}
+
+export function save() {
+ return dispatch => fetchApi('/options/save', { method: 'POST' })
+}