From 5d549fec126f09c4643839107e5d18bea3659286 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Thu, 15 Nov 2018 16:32:33 +0100 Subject: [PATCH] Changed to popups for installing and uninstalling extensions Signed-off-by: Julien Eluard --- src/status_im/extensions/registry.cljs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/status_im/extensions/registry.cljs b/src/status_im/extensions/registry.cljs index 21a5260c49..96a99cba68 100644 --- a/src/status_im/extensions/registry.cljs +++ b/src/status_im/extensions/registry.cljs @@ -56,10 +56,9 @@ :active? true} new-extensions (assoc (:extensions account) (:url extension) extension)] (fx/merge cofx - {:ui/show-confirmation {:title (i18n/label :t/success) - :content (i18n/label :t/extension-installed) - :on-accept #(re-frame/dispatch [:navigate-to-clean :my-profile]) - :on-cancel nil}} + {:utils/show-popup {:title (i18n/label :t/success) + :content (i18n/label :t/extension-installed) + :on-dismiss #(re-frame/dispatch [:navigate-to-clean :my-profile])}} (accounts.update/account-update {:extensions new-extensions} {}) (add-to-registry (:value url) extension-data true)))) @@ -68,10 +67,8 @@ (let [{:account/keys [account]} db new-extensions (dissoc (:extensions account) extension-key)] (fx/merge cofx - {:ui/show-confirmation {:title (i18n/label :t/success) - :content (i18n/label :t/extension-uninstalled) - :on-accept nil - :on-cancel nil}} + {:utils/show-popup {:title (i18n/label :t/success) + :content (i18n/label :t/extension-uninstalled)}} (remove-from-registry extension-key) (accounts.update/account-update {:extensions new-extensions} {}))))