From e98b88f673cd637fe2a741894c2bd3b2fd143bf1 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 6 May 2021 17:26:51 +0200 Subject: [PATCH] :sparkles: Set default role on invitation modal. Just a quality of life improvement. --- frontend/src/app/main/ui/dashboard/team.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/dashboard/team.cljs b/frontend/src/app/main/ui/dashboard/team.cljs index d1126444e..64eed4bee 100644 --- a/frontend/src/app/main/ui/dashboard/team.cljs +++ b/frontend/src/app/main/ui/dashboard/team.cljs @@ -85,7 +85,8 @@ ;; https://tree.taiga.io/project/uxboxproject/issue/1083 ;; {:value "viewer" :label (tr "labels.viewer")}] - initial (mf/use-memo (mf/deps team) (constantly {:team-id (:id team)})) + initial (mf/use-memo (mf/deps team) (constantly {:team-id (:id team) + :role "editor"})) form (fm/use-form :spec ::invite-member-form :initial initial) on-success