From 87fc2db78ad6fc86851bd01d65cdcffa12860db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Mon, 20 Jul 2020 13:37:49 +0200 Subject: [PATCH] :sparkles: Remove "p" in new project and file names --- frontend/src/uxbox/main/data/dashboard.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/uxbox/main/data/dashboard.cljs b/frontend/src/uxbox/main/data/dashboard.cljs index 1be7d2394b..9418b471e4 100644 --- a/frontend/src/uxbox/main/data/dashboard.cljs +++ b/frontend/src/uxbox/main/data/dashboard.cljs @@ -246,7 +246,7 @@ (ptk/reify ::create-project ptk/WatchEvent (watch [_ state stream] - (let [name (str "New Project " (gensym "p")) + (let [name (str "New Project " (gensym "")) team-id (get-in state [:dashboard-local :team-id])] (->> (rp/mutation! :create-project {:name name :team-id team-id}) (rx/map project-created)))))) @@ -348,7 +348,7 @@ (ptk/reify ::create-file ptk/WatchEvent (watch [_ state stream] - (let [name (str "New File " (gensym "p")) + (let [name (str "New File " (gensym "")) params {:name name :project-id project-id}] (->> (rp/mutation! :create-file params) (rx/map file-created))))))