Do not show the templates modal on onboarding

This commit is contained in:
Pablo Alba 2022-02-16 18:54:52 +01:00 committed by Andrey Antukh
parent 3d8f757712
commit 75a8f85ebb
8 changed files with 38 additions and 42 deletions

View file

@ -18,7 +18,7 @@
[:div.grid-item]]
(true? default?)
[:div.grid-empty-placeholder.drafts
[:div.grid-empty-placeholder.drafts {:data-test "empty-placeholder"}
[:div.text
[:& i18n/tr-html {:label "dashboard.empty-placeholder-drafts"}]]]

View file

@ -30,7 +30,7 @@
;; the onboarding templates modal.
on-fly-solo
(fn []
(tm/schedule 400 #(st/emit! (modal/show {:type :onboarding-templates}))))
(tm/schedule 400 #(st/emit! (modal/hide))))
;; When user choices the option of `team up`, we proceed to show
;; the team creation modal.
@ -121,14 +121,12 @@
on-success
(mf/use-callback
(fn [_form response]
(let [project-id (:default-project-id response)
team-id (:id response)]
(let [team-id (:id response)]
(st/emit!
(modal/hide)
(rt/nav :dashboard-projects {:team-id team-id}))
(tm/schedule 400 #(st/emit!
(modal/show {:type :onboarding-templates
:project-id project-id}))))))
(modal/hide))))))
on-error
(mf/use-callback

View file

@ -74,7 +74,7 @@
:data-test "close-templates-btn"} i/close]]
[:div.modal-content
[:h3 {:data-test "onboarding-templates-title"} (tr "onboarding.templates.title")]
[:h3 (tr "onboarding.templates.title")]
[:p (tr "onboarding.templates.subtitle")]
[:div.templates