]> git.cworth.org Git - turbot/blobdiff - turbot_lambda/turbot_lambda.py
Handle the submission of the "New Hunt" modal
[turbot] / turbot_lambda / turbot_lambda.py
index 113e639c3cd325e3a8de3e132c409437b2ad302e..9d878af8c7e05a92b58846e96a20c9c54fd682c5 100644 (file)
@@ -9,7 +9,6 @@ from types import SimpleNamespace
 import turbot.actions
 import turbot.commands
 import turbot.events
-import turbot.views
 
 ssm = boto3.client('ssm')
 
@@ -138,6 +137,8 @@ def turbot_interactive(turb, payload):
 
     if type == 'block_actions':
         return turbot_block_action(turb, payload)
+    if type == 'view_submission':
+        return turbot.actions.view_submission(turb, payload)
     return error("Unrecognized interactive type: {}".format(type))
 
 def turbot_block_action(turb, payload):