fix: hide new whiteboard button

pull/8673/merge
Konstantinos Kaloutas 2023-03-27 10:43:57 +03:00 committed by Gabriel Horner
parent c54e570644
commit 718d4956df
1 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,8 @@
[frontend.util :as util] [frontend.util :as util]
[promesa.core :as p] [promesa.core :as p]
[rum.core :as rum] [rum.core :as rum]
[shadow.loader :as loader])) [shadow.loader :as loader]
[frontend.config :as config]))
(defonce tldraw-loaded? (atom false)) (defonce tldraw-loaded? (atom false))
(rum/defc tldraw-app < rum/reactive (rum/defc tldraw-app < rum/reactive
@ -234,7 +235,7 @@
[:div.gap-8.grid.grid-rows-auto [:div.gap-8.grid.grid-rows-auto
{:style {:visibility (when (nil? container-width) "hidden") {:style {:visibility (when (nil? container-width) "hidden")
:grid-template-columns (str "repeat(" cols ", minmax(0, 1fr))")}} :grid-template-columns (str "repeat(" cols ", minmax(0, 1fr))")}}
(dashboard-create-card) (when-not config/publishing? (dashboard-create-card))
(for [whiteboard-name whiteboard-names] (for [whiteboard-name whiteboard-names]
[:<> {:key whiteboard-name} [:<> {:key whiteboard-name}
(dashboard-preview-card whiteboard-name (dashboard-preview-card whiteboard-name