From a4bbfe3c7953e0816a1282afaf6131a54979f774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Wed, 20 Oct 2021 13:59:53 +0200 Subject: [PATCH] :sparkles: Consider overlays inside flows --- common/src/app/common/types/interactions.cljc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/app/common/types/interactions.cljc b/common/src/app/common/types/interactions.cljc index 42967c283..f7723ab31 100644 --- a/common/src/app/common/types/interactions.cljc +++ b/common/src/app/common/types/interactions.cljc @@ -362,15 +362,15 @@ (some #(= (:event-type %) :click) interactions)) (defn flow-origin? - "Check if there is any interaction of type :navigate that goes outside" + "Check if there is any interaction that is the start or the continuation of a flow" [interactions] - (some #(and (= (:action-type %) :navigate) + (some #(and (#{:navigate :open-overlay :toggle-overlay :close-overlay} (:action-type %)) (some? (:destination %))) interactions)) (defn flow-to? - "Check if there is any interaction of type :navigate that goes to the given frame" + "Check if there is any interaction that flows into the given frame" [interactions frame-id] - (some #(and (= (:action-type %) :navigate) + (some #(and (#{:navigate :open-overlay :toggle-overlay :close-overlay} (:action-type %)) (= (:destination %) frame-id)) interactions))