From 3d13015e303980c70b3058fa421324b463244c78 Mon Sep 17 00:00:00 2001 From: Akshay Gupta Date: Wed, 8 May 2024 15:16:11 +0530 Subject: [PATCH] add ability to close modal once save token button is clicked --- frontend/src/app/main/ui/workspace/tokens/modal.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/modal.cljs b/frontend/src/app/main/ui/workspace/tokens/modal.cljs index f2f614762..5420fc9b5 100644 --- a/frontend/src/app/main/ui/workspace/tokens/modal.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/modal.cljs @@ -8,6 +8,7 @@ (:require-macros [app.main.style :as stl]) (:require [app.common.data :as d] + [app.main.data.modal :as modal] [app.main.data.tokens :as dt] [app.main.refs :as refs] [app.main.store :as st] @@ -68,7 +69,8 @@ :type token-type :value token-value} @description (assoc :description @description))] - (st/emit! (dt/add-token token))))] + (st/emit! (dt/add-token token)) + (modal/hide!)))] (mf/use-effect (fn []