1
0
Fork 0
mirror of https://github.com/heyarne/airsonic-ui.git synced 2026-05-06 18:33:38 +02:00

Use loading indicator provided by bulma

This commit is contained in:
heyarne 2019-02-20 15:06:15 +01:00
commit 058b8377a8
3 changed files with 7 additions and 24 deletions

View file

@ -1,7 +1,6 @@
(ns airsonic-ui.views.breadcrumbs
(:require [re-frame.core :refer [subscribe]]
[airsonic-ui.routes :as routes :refer [url-for]]
[airsonic-ui.views.loading-spinner :refer [loading-spinner]]))
[airsonic-ui.routes :as routes :refer [url-for]]))
;; Breadcrumbs are implemented in such a way that they provide a stringent
;; hierarchy no matter how you came to the url. They should allow easy
@ -15,7 +14,7 @@
(for [[idx [href label]] (map-indexed vector (butlast items))]
[:li {:key idx} [:a {:href href} label]])
[:li.is-active>a (last items)
(when content-pending? [loading-spinner])]]]]))
(when content-pending? [:span.loader])]]]]))
(defmulti breadcrumbs
(fn dispatch-on [[route-id] content] route-id))