mirror of https://github.com/logseq/logseq
remove :editor/editing-page-title? state
parent
4ae0ca2254
commit
f26dbe5dc7
|
@ -217,7 +217,6 @@
|
||||||
(when (util/wrapped-by-quotes? @*title-value)
|
(when (util/wrapped-by-quotes? @*title-value)
|
||||||
(swap! *title-value util/unquote-string)
|
(swap! *title-value util/unquote-string)
|
||||||
(gobj/set (rum/deref input-ref) "value" @*title-value))
|
(gobj/set (rum/deref input-ref) "value" @*title-value))
|
||||||
(state/set-state! :editor/editing-page-title? false)
|
|
||||||
(cond
|
(cond
|
||||||
(= old-name @*title-value)
|
(= old-name @*title-value)
|
||||||
(reset! *edit? false)
|
(reset! *edit? false)
|
||||||
|
@ -252,7 +251,6 @@
|
||||||
(reset! *title-value old-name)
|
(reset! *title-value old-name)
|
||||||
(reset! *edit? false)))}]]
|
(reset! *edit? false)))}]]
|
||||||
[:a.page-title {:on-mouse-down (fn [e]
|
[:a.page-title {:on-mouse-down (fn [e]
|
||||||
(state/set-state! :editor/editing-page-title? true)
|
|
||||||
(when (util/right-click? e)
|
(when (util/right-click? e)
|
||||||
(state/set-state! :page-title/context {:page page-name})))
|
(state/set-state! :page-title/context {:page page-name})))
|
||||||
:on-click (fn [e]
|
:on-click (fn [e]
|
||||||
|
|
|
@ -111,7 +111,6 @@
|
||||||
:editor/args nil
|
:editor/args nil
|
||||||
:editor/on-paste? false
|
:editor/on-paste? false
|
||||||
:editor/last-key-code nil
|
:editor/last-key-code nil
|
||||||
:editor/editing-page-title? false
|
|
||||||
|
|
||||||
;; for audio record
|
;; for audio record
|
||||||
:editor/record-status "NONE"
|
:editor/record-status "NONE"
|
||||||
|
|
Loading…
Reference in New Issue