add config for e2e tooltip events

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2020-01-08 16:50:35 +02:00
parent 9ad4939563
commit 13dfc544df
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
3 changed files with 13 additions and 7 deletions

View File

@ -19,3 +19,4 @@ PARTITIONED_TOPIC=0
CONTRACT_NODES=1
MOBILE_UI_FOR_DESKTOP=1
BLANK_PREVIEW=0
TOOLTIP_EVENTS=1

View File

@ -1,14 +1,18 @@
(ns status-im.ui.components.tooltip.styles
(:require [status-im.ui.components.colors :as colors]
[status-im.utils.styles :as styles]))
[status-im.utils.styles :as styles]
[status-im.utils.config :as config]))
(def tooltip-container
{:position :absolute
:align-items :center
:pointer-events :none
:left 0
:right 0
:top 0})
(merge
{:position :absolute
:align-items :center
:left 0
:right 0
:top 0}
;;we need this for e2e tests
(when-not config/tooltip-events?
{:pointer-events :none})))
(styles/def bottom-tooltip-container
{:position :absolute

View File

@ -35,6 +35,7 @@
(def local-notifications? (enabled? (get-config :LOCAL_NOTIFICATIONS "1")))
(def blank-preview? (enabled? (get-config :BLANK_PREVIEW "1")))
(def group-chat-enabled? (enabled? (get-config :GROUP_CHATS_ENABLED "0")))
(def tooltip-events? (enabled? (get-config :TOOLTIP_EVENTS "0")))
;; CONFIG VALUES
(def log-level