From 0a5f4e310ca7b9a5157b40b0b0d65a5040de1c32 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 20 Dec 2016 16:55:51 +0100 Subject: [PATCH] Prevent page persistence when shape is resizing. --- frontend/src/uxbox/main/data/pages.cljs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/uxbox/main/data/pages.cljs b/frontend/src/uxbox/main/data/pages.cljs index 481b33f91..9ac75a529 100644 --- a/frontend/src/uxbox/main/data/pages.cljs +++ b/frontend/src/uxbox/main/data/pages.cljs @@ -9,10 +9,11 @@ [cuerdas.core :as str] [beicon.core :as rx] [lentes.core :as l] - [uxbox.main.repo :as rp] - [uxbox.store :as st] - [uxbox.util.spec :as us] [potok.core :as ptk] + [uxbox.store :as st] + [uxbox.main.repo :as rp] + [uxbox.util.rlocks :as rlocks] + [uxbox.util.spec :as us] [uxbox.util.router :as r] [uxbox.util.i18n :refer (tr)] [uxbox.util.forms :as sc] @@ -308,6 +309,7 @@ (rx/merge (->> stream (rx/take-until stopper) + (rx/filter #(not= @rlocks/lock :shape/resize)) (rx/filter #(satisfies? IPageUpdate %)) (rx/debounce 1000) (rx/map #(persist-page id)))