From 17b32d651897f2b1d019a6590995ae761a7da66f Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 4 Jun 2021 13:44:24 +0200 Subject: [PATCH] :bug: Don't allow rename drafts project. --- frontend/src/app/main/ui/dashboard/project_menu.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/dashboard/project_menu.cljs b/frontend/src/app/main/ui/dashboard/project_menu.cljs index 946478a09..8ea8b4132 100644 --- a/frontend/src/app/main/ui/dashboard/project_menu.cljs +++ b/frontend/src/app/main/ui/dashboard/project_menu.cljs @@ -79,7 +79,8 @@ :min-width? true :top top :left left - :options [[(tr "labels.rename") on-edit] + :options [(when-not (:is-default project) + [(tr "labels.rename") on-edit]) [(tr "dashboard.duplicate") on-duplicate] [(tr "dashboard.pin-unpin") toggle-pin] (when (seq teams)