about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/actions
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-08-06 11:59:46 +0200
committerThibaut Girka <thib@sitedethib.com>2019-08-06 15:09:30 +0200
commitfe1de4e49b2ee6b74139d8ac7811104095c7477b (patch)
treea36fcf4a5ee4a48593752ee508c8f3c00603791d /app/javascript/flavours/glitch/actions
parent6afdb6c2b698737e63f781aba7fae71ab28106d6 (diff)
[Glitch] Improve dropdown menu keyboard navigation
Port a12f1a0baf3d31ecc9779c25b4bf4a0c9bd95543 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/actions')
-rw-r--r--app/javascript/flavours/glitch/actions/modal.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/actions/modal.js b/app/javascript/flavours/glitch/actions/modal.js
index 80e15c28e..3d0299db5 100644
--- a/app/javascript/flavours/glitch/actions/modal.js
+++ b/app/javascript/flavours/glitch/actions/modal.js
@@ -9,8 +9,9 @@ export function openModal(type, props) {
   };
 };
 
-export function closeModal() {
+export function closeModal(type) {
   return {
     type: MODAL_CLOSE,
+    modalType: type,
   };
 };