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:
parent
ab7519f289
commit
fee9793934
3 changed files with 43 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue