[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 []
|
(defn item-page []
|
||||||
(let [loading @(subscribe [:loading])
|
(let [loading @(subscribe [:loading])
|
||||||
post @(subscribe [:post])]
|
post @(subscribe [:post])]
|
||||||
[:div
|
(if (:post loading)
|
||||||
{:dangerouslySetInnerHTML
|
[:p "Loading..."]
|
||||||
{:__html post}}]))
|
[:div
|
||||||
|
{:dangerouslySetInnerHTML
|
||||||
|
{:__html post}}])))
|
||||||
|
|
||||||
(defn nav [{:keys [current-route]}]
|
(defn nav [{:keys [current-route]}]
|
||||||
(let [active #(when (= % (-> current-route :data :name)) "> ")]
|
(let [active #(when (= % (-> current-route :data :name)) "> ")]
|
||||||
|
|
Loading…
Reference in a new issue