fix: prevent page editing on published graphs

This commit is contained in:
Konstantinos Kaloutas
2023-03-25 11:36:57 +02:00
committed by Gabriel Horner
parent 7f93374802
commit e21de5c30b

View File

@@ -315,7 +315,7 @@
repo
(:db/id page)
:page))
(when (and (not hls-page?) (not fmt-journal?))
(when (and (not hls-page?) (not fmt-journal?) (not config/publishing?))
(reset! *input-value (if untitled? "" old-name))
(reset! *edit? true))))}
(when (not= icon "") [:span.page-icon icon])