[front/feat] show loading phrase
This commit is contained in:
parent
10799c3de1
commit
8e302634ae
1 changed files with 5 additions and 3 deletions
|
@ -20,9 +20,11 @@
|
|||
(defn item-page []
|
||||
(let [loading @(subscribe [:loading])
|
||||
post @(subscribe [:post])]
|
||||
(if (:post loading)
|
||||
[:p "Loading..."]
|
||||
[:div
|
||||
{:dangerouslySetInnerHTML
|
||||
{:__html post}}]))
|
||||
{:__html post}}])))
|
||||
|
||||
(defn nav [{:keys [current-route]}]
|
||||
(let [active #(when (= % (-> current-route :data :name)) "> ")]
|
||||
|
|
Loading…
Reference in a new issue