Should fix most of the authentication issues
This commit is contained in:
@@ -56,6 +56,11 @@
|
||||
(when (= "admin" (:user/role @user))
|
||||
[:a {:class "navbar-item" :href (bidi/path-for routes/routes :admin)} "Administration"])
|
||||
[:hr {:class "navbar-divider"}]
|
||||
[:a.navbar-item {:on-click (fn []
|
||||
(.removeItem js/localStorage "last-client-id" nil)
|
||||
(.setItem js/localStorage "last-selected-clients" ":all")
|
||||
(.reload (.-location js/document ) true))}
|
||||
"Full Refresh"]
|
||||
[:a.navbar-item {:on-click (fn [e] (.preventDefault e) (re-frame/dispatch [::events/logout]))} "Logout"]]]
|
||||
[:a.navbar-item {:href (login-url)} "Login"])))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user