mirror of https://github.com/logseq/logseq
remove unneeded menu options when publishing
parent
70f2ab1e98
commit
cfd38a3cee
|
@ -114,17 +114,19 @@
|
||||||
:options {:href (rfe/href :import)}
|
:options {:href (rfe/href :import)}
|
||||||
:icon (ui/icon "file-upload")})
|
:icon (ui/icon "file-upload")})
|
||||||
|
|
||||||
{:title [:div.flex-row.flex.justify-between.items-center
|
(when-not config/publishing?
|
||||||
[:span (t :join-community)]]
|
{:title [:div.flex-row.flex.justify-between.items-center
|
||||||
:options {:href "https://discuss.logseq.com"
|
[:span (t :join-community)]]
|
||||||
:title (t :discourse-title)
|
:options {:href "https://discuss.logseq.com"
|
||||||
:target "_blank"}
|
:title (t :discourse-title)
|
||||||
:icon (ui/icon "brand-discord")}
|
:target "_blank"}
|
||||||
|
:icon (ui/icon "brand-discord")})
|
||||||
|
|
||||||
{:title [:div.flex-row.flex.justify-between.items-center
|
(when-not config/publishing?
|
||||||
[:span (t :help/bug)]]
|
{:title [:div.flex-row.flex.justify-between.items-center
|
||||||
:options {:href (rfe/href :bug-report)}
|
[:span (t :help/bug)]]
|
||||||
:icon (ui/icon "bug")}
|
:options {:href (rfe/href :bug-report)}
|
||||||
|
:icon (ui/icon "bug")})
|
||||||
|
|
||||||
(when (and (state/sub :auth/id-token) (user-handler/logged-in?))
|
(when (and (state/sub :auth/id-token) (user-handler/logged-in?))
|
||||||
{:title (str (t :logout) " (" (user-handler/email) ")")
|
{:title (str (t :logout) " (" (user-handler/email) ")")
|
||||||
|
|
|
@ -78,7 +78,8 @@
|
||||||
file-sync-graph-uuid (and (user-handler/logged-in?)
|
file-sync-graph-uuid (and (user-handler/logged-in?)
|
||||||
(file-sync-handler/enable-sync?)
|
(file-sync-handler/enable-sync?)
|
||||||
(file-sync-handler/get-current-graph-uuid))]
|
(file-sync-handler/get-current-graph-uuid))]
|
||||||
(when (and page (not block?))
|
(when (and page (not (or (block?)
|
||||||
|
(config/publishing?))))
|
||||||
(->>
|
(->>
|
||||||
[{:title (if favorited?
|
[{:title (if favorited?
|
||||||
(t :page/unfavorite)
|
(t :page/unfavorite)
|
||||||
|
@ -109,7 +110,8 @@
|
||||||
{:title (t :page/copy-page-url)
|
{:title (t :page/copy-page-url)
|
||||||
:options {:on-click #(page-handler/copy-page-url page-original-name)}})
|
:options {:on-click #(page-handler/copy-page-url page-original-name)}})
|
||||||
|
|
||||||
(when-not contents?
|
(when-not (or (contents?)
|
||||||
|
(config/publishing?))
|
||||||
{:title (t :page/delete)
|
{:title (t :page/delete)
|
||||||
:options {:on-click #(state/set-modal! (delete-page-dialog page-name))}})
|
:options {:on-click #(state/set-modal! (delete-page-dialog page-name))}})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue