mirror of https://github.com/logseq/logseq
For publishing disable only favoriting, not whole menu
parent
a157c58d84
commit
625d41eb8d
|
@ -78,18 +78,18 @@
|
|||
file-sync-graph-uuid (and (user-handler/logged-in?)
|
||||
(file-sync-handler/enable-sync?)
|
||||
(file-sync-handler/get-current-graph-uuid))]
|
||||
(when (and page (not (or block?
|
||||
config/publishing?)))
|
||||
(when (and page (not block?))
|
||||
(->>
|
||||
[{:title (if favorited?
|
||||
(t :page/unfavorite)
|
||||
(t :page/add-to-favorites))
|
||||
:options {:on-click
|
||||
(fn []
|
||||
(if favorited?
|
||||
(page-handler/unfavorite-page! page-original-name)
|
||||
(page-handler/favorite-page! page-original-name)))}}
|
||||
|
||||
[(when-not config/publishing?
|
||||
{:title (if favorited?
|
||||
(t :page/unfavorite)
|
||||
(t :page/add-to-favorites))
|
||||
:options {:on-click
|
||||
(fn []
|
||||
(if favorited?
|
||||
(page-handler/unfavorite-page! page-original-name)
|
||||
(page-handler/favorite-page! page-original-name)))}})
|
||||
|
||||
(when (or (util/electron?) file-sync-graph-uuid)
|
||||
{:title (t :page/version-history)
|
||||
:options {:on-click
|
||||
|
@ -110,7 +110,7 @@
|
|||
{:title (t :page/copy-page-url)
|
||||
:options {:on-click #(page-handler/copy-page-url page-original-name)}})
|
||||
|
||||
(when-not (or contents?
|
||||
(when-not (or contents?
|
||||
config/publishing?)
|
||||
{:title (t :page/delete)
|
||||
:options {:on-click #(state/set-modal! (delete-page-dialog page-name))}})
|
||||
|
|
Loading…
Reference in New Issue