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

Implement logout (closes #9)

This commit is contained in:
Arne Schlüter 2018-06-11 23:02:21 +02:00
commit fee9793934
3 changed files with 43 additions and 20 deletions

View file

@ -42,9 +42,8 @@
[:p.menu-label "User area"]
[:ul.menu-list
[:li [:a "Settings"]]
;; FIXME: Create proper logout event
[:li [:a
{:on-click #(dispatch [::events/initialize-db]) :href "#"}
{:on-click #(dispatch [::events/logout]) :href "#"}
(str "Logout (" (:name user) ")")]]]])
;; putting everything together