From 69d903f5f83898a99cb0dab98fdc497bb2e8e89f Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 13 Mar 2016 15:12:52 +0200 Subject: [PATCH] Integrate new messages component on login and dashboard. --- src/uxbox/ui/auth.cljs | 2 ++ src/uxbox/ui/dashboard.cljs | 29 ++++++++++------------------- 2 files changed, 12 insertions(+), 19 deletions(-) diff --git a/src/uxbox/ui/auth.cljs b/src/uxbox/ui/auth.cljs index a41a740693..4261a1ed78 100644 --- a/src/uxbox/ui/auth.cljs +++ b/src/uxbox/ui/auth.cljs @@ -7,6 +7,7 @@ [uxbox.rstore :as rs] [uxbox.data.auth :as da] [uxbox.ui.icons :as i] + [uxbox.ui.messages :as uum] [uxbox.ui.navigation :as nav] [uxbox.ui.mixins :as mx])) @@ -22,6 +23,7 @@ (html [:div.login [:div.login-body + (uum/messages) [:a i/logo] [:div.login-content [:input.input-text diff --git a/src/uxbox/ui/dashboard.cljs b/src/uxbox/ui/dashboard.cljs index 30e9119ef0..e33b31c5de 100644 --- a/src/uxbox/ui/dashboard.cljs +++ b/src/uxbox/ui/dashboard.cljs @@ -7,6 +7,7 @@ [uxbox.ui.mixins :as mx] [uxbox.util.dom :as dom] [uxbox.data.dashboard :as dd] + [uxbox.ui.messages :as uum] [uxbox.ui.library-bar :as ui.library-bar] [uxbox.ui.dashboard.header :refer (header)] [uxbox.ui.dashboard.projects :as projects] @@ -14,25 +15,15 @@ [uxbox.ui.dashboard.icons :as icons] [uxbox.ui.dashboard.colors :as colors])) -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Messages -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(defn messages-render - [] - (html - [:div.message.error.hide - [:div.message-body - [:span.close i/close] - [:span "Something wrong has happened"]]])) -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Page: projects -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defn projects-page-render [own] (html [:main.dashboard-main - (messages-render) + (uum/messages) (header) [:section.dashboard-content (projects/menu) @@ -56,9 +47,9 @@ :name "projects-page" :mixins [rum/static]})) -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Page: elements -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defn elements-page-render [own] @@ -89,9 +80,9 @@ :name "elements-page" :mixins [mx/static]})) -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Page: icons -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defn icons-page-render [own] @@ -120,9 +111,9 @@ :name "icons-page" :mixins [mx/static]})) -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Page: colors -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defn colors-page-render [own]