aboutsummaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/follow.js29
-rw-r--r--src/actions/index.js6
2 files changed, 35 insertions, 0 deletions
diff --git a/src/actions/follow.js b/src/actions/follow.js
new file mode 100644
index 0000000..7ab689e
--- /dev/null
+++ b/src/actions/follow.js
@@ -0,0 +1,29 @@
+import actions from '../actions';
+
+const enable = (newTab) => {
+ return {
+ type: actions.FOLLOW_ENABLE,
+ newTab,
+ };
+};
+
+const disable = () => {
+ return {
+ type: actions.FOLLOW_DISABLE,
+ };
+};
+
+const keyPress = (key) => {
+ return {
+ type: actions.FOLLOW_KEY_PRESS,
+ key: key
+ };
+};
+
+const backspace = () => {
+ return {
+ type: actions.FOLLOW_BACKSPACE,
+ };
+};
+
+export { enable, disable, keyPress, backspace };
diff --git a/src/actions/index.js b/src/actions/index.js
index 63c36d2..4e8d4a7 100644
--- a/src/actions/index.js
+++ b/src/actions/index.js
@@ -17,4 +17,10 @@ export default {
// Settings
SETTING_SET_SETTINGS: 'setting.set.settings',
+
+ // Follow
+ FOLLOW_ENABLE: 'follow.enable',
+ FOLLOW_DISABLE: 'follow.disable',
+ FOLLOW_KEY_PRESS: 'follow.key.press',
+ FOLLOW_BACKSPACE: 'follow.backspace',
};