Disable pairing pop-up in e2e
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
This commit is contained in:
parent
d093b5f6be
commit
093f7de1aa
1
.env
1
.env
|
@ -11,7 +11,6 @@ HARDWALLET_ENABLED=0
|
|||
LOG_LEVEL_STATUS_GO=info
|
||||
LOG_LEVEL=debug
|
||||
MAILSERVER_CONFIRMATIONS_ENABLED=0
|
||||
PAIRING_ENABLED=1
|
||||
PFS_ENCRYPTION_ENABLED=1
|
||||
POW_TARGET=0.002
|
||||
POW_TIME=1
|
||||
|
|
2
.env.e2e
2
.env.e2e
|
@ -8,7 +8,7 @@ GROUP_CHATS_ENABLED=1
|
|||
LOG_LEVEL_STATUS_GO=info
|
||||
LOG_LEVEL=debug
|
||||
MAILSERVER_CONFIRMATIONS_ENABLED=0
|
||||
PAIRING_ENABLED=1
|
||||
PAIRING_POPUP_DISABLED=1
|
||||
PFS_ENCRYPTION_ENABLED=1
|
||||
POW_TARGET=0.002
|
||||
POW_TIME=1
|
||||
|
|
|
@ -11,7 +11,6 @@ LOG_LEVEL_STATUS_GO=info
|
|||
LOG_LEVEL=debug
|
||||
MAILSERVER_CONFIRMATIONS_ENABLED=0
|
||||
MAINNET_WARNING_ENABLED=1
|
||||
PAIRING_ENABLED=1
|
||||
PFS_ENCRYPTION_ENABLED=1
|
||||
POW_TARGET=0.002
|
||||
POW_TIME=1
|
||||
|
|
|
@ -9,7 +9,6 @@ LOG_LEVEL_STATUS_GO=info
|
|||
LOG_LEVEL=debug
|
||||
MAILSERVER_CONFIRMATIONS_ENABLED=0
|
||||
MAINNET_WARNING_ENABLED=1
|
||||
PAIRING_ENABLED=1
|
||||
PFS_ENCRYPTION_ENABLED=1
|
||||
POW_TARGET=0.002
|
||||
POW_TIME=1
|
||||
|
|
|
@ -9,7 +9,6 @@ LOG_LEVEL_STATUS_GO=info
|
|||
LOG_LEVEL=debug
|
||||
MAILSERVER_CONFIRMATIONS_ENABLED=0
|
||||
MAINNET_WARNING_ENABLED=1
|
||||
PAIRING_ENABLED=1
|
||||
PFS_ENCRYPTION_ENABLED=1
|
||||
POW_TARGET=0.002
|
||||
POW_TIME=1
|
||||
|
|
|
@ -8,7 +8,6 @@ GROUP_CHATS_ENABLED=1
|
|||
LOG_LEVEL_STATUS_GO=
|
||||
LOG_LEVEL=info
|
||||
MAINNET_WARNING_ENABLED=1
|
||||
PAIRING_ENABLED=1
|
||||
PFS_ENCRYPTION_ENABLED=1
|
||||
POW_TARGET=0.002
|
||||
POW_TIME=1
|
||||
|
|
|
@ -69,13 +69,14 @@
|
|||
(navigation/navigate-to-cofx :installations nil)))
|
||||
|
||||
(fx/defn prompt-user-on-new-installation [{:keys [db]}]
|
||||
{:db (assoc-in db [:pairing/prompt-user-pop-up] true)
|
||||
:ui/show-confirmation {:title (i18n/label :t/pairing-new-installation-detected-title)
|
||||
:content (i18n/label :t/pairing-new-installation-detected-content)
|
||||
:confirm-button-text (i18n/label :t/pairing-go-to-installation)
|
||||
:cancel-button-text (i18n/label :t/cancel)
|
||||
:on-cancel #(re-frame/dispatch [:pairing.ui/prompt-dismissed])
|
||||
:on-accept #(re-frame/dispatch [:pairing.ui/prompt-accepted])}})
|
||||
(when-not config/pairing-popup-disabled?
|
||||
{:db (assoc-in db [:pairing/prompt-user-pop-up] true)
|
||||
:ui/show-confirmation {:title (i18n/label :t/pairing-new-installation-detected-title)
|
||||
:content (i18n/label :t/pairing-new-installation-detected-content)
|
||||
:confirm-button-text (i18n/label :t/pairing-go-to-installation)
|
||||
:cancel-button-text (i18n/label :t/cancel)
|
||||
:on-cancel #(re-frame/dispatch [:pairing.ui/prompt-dismissed])
|
||||
:on-accept #(re-frame/dispatch [:pairing.ui/prompt-accepted])}}))
|
||||
|
||||
(fx/defn upsert-installation [{:keys [db]} {:keys [installation-id] :as new-installation}]
|
||||
(let [old-installation (get-in db [:pairing/installations installation-id])
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
(def mailserver-confirmations-enabled? (enabled? (get-config :MAILSERVER_CONFIRMATIONS_ENABLED)))
|
||||
(def mainnet-warning-enabled? (enabled? (get-config :MAINNET_WARNING_ENABLED 0)))
|
||||
(def pfs-encryption-enabled? (enabled? (get-config :PFS_ENCRYPTION_ENABLED "0")))
|
||||
(def pairing-popup-disabled? (enabled? (get-config :PAIRING_POPUP_DISABLED "0")))
|
||||
(def cached-webviews-enabled? (enabled? (get-config :CACHED_WEBVIEWS_ENABLED 0)))
|
||||
(def rn-bridge-threshold-warnings-enabled? (enabled? (get-config :RN_BRIDGE_THRESHOLD_WARNINGS 0)))
|
||||
(def extensions-enabled? (enabled? (get-config :EXTENSIONS 0)))
|
||||
|
|
Loading…
Reference in New Issue