From 316db61c8a12378fc071847df0075c4d8d2a131a Mon Sep 17 00:00:00 2001 From: Akshay Gupta Date: Wed, 15 May 2024 13:23:47 +0530 Subject: [PATCH] remove warning modal when deletion of a token --- .../src/app/main/ui/workspace/tokens/context_menu.cljs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs b/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs index f6a9f8d4e..5721e15b5 100644 --- a/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/context_menu.cljs @@ -10,7 +10,6 @@ [app.common.data :as d] [app.common.data.macros :as dm] [app.main.data.events :as ev] - [app.main.data.modal :as modal] [app.main.data.shortcuts :as scd] [app.main.data.tokens :as dt] [app.main.data.workspace :as dw] @@ -114,12 +113,7 @@ (mf/defc token-pill-context-menu [{:keys [token-id]}] - (let [delete-fn #(st/emit! (dt/delete-token token-id)) - do-delete #(st/emit! (modal/show - {:type :confirm - :title "Delete" - :message "Are you sure?" - :on-accept delete-fn})) + (let [do-delete #(st/emit! (dt/delete-token token-id)) do-duplicate #(js/console.log "Duplicating") do-edit #(js/console.log "Editing")] [:ul.context-list