aboutsummaryrefslogtreecommitdiff
path: root/src/background/actions/operation.js
diff options
context:
space:
mode:
authorJiabo Hou <jiabo.hou@hotmail.com>2017-10-31 19:37:27 -0400
committerJiabo Hou <jiabo.hou@hotmail.com>2017-11-05 17:28:26 -0500
commitc2d2f895a5e65cc7a42da39e7ab8acf73cb03fc8 (patch)
tree6210a9309214388082381a0a19d5d16445b0b3b6 /src/background/actions/operation.js
parentb3b017a123516096dd7be05695f7a71da3b808cc (diff)
added support for pinning/unpinning tabs
features: * pin tab * unpin tab * toggle pin/unpin tab
Diffstat (limited to 'src/background/actions/operation.js')
-rw-r--r--src/background/actions/operation.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/background/actions/operation.js b/src/background/actions/operation.js
index a5094c0..c45eabd 100644
--- a/src/background/actions/operation.js
+++ b/src/background/actions/operation.js
@@ -26,6 +26,12 @@ const exec = (operation, tab) => {
return tabs.selectLastTab();
case operations.TAB_RELOAD:
return tabs.reload(tab, operation.cache);
+ case operations.TAB_PIN:
+ return tabs.updateTabPinned(tab, true);
+ case operations.TAB_UNPIN:
+ return tabs.updateTabPinned(tab, false);
+ case operations.TAB_TOGGLE_PINNED:
+ return tabs.updateTabPinned(tab);
case operations.ZOOM_IN:
return zooms.zoomIn();
case operations.ZOOM_OUT: