File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
src-cljs/frontend/components Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 46
46
{:build build/page
47
47
:project-settings project-settings/page
48
48
:project-insights project-insights/page
49
- :add-projects add-projects/page}
49
+ :add-projects add-projects/page
50
+ :projects projects/page}
50
51
; ; Old-World dominant component functions which need to be wrapped in the `main` template.
51
52
; ; As we migrate these, we'll move them into the map above.
52
53
(into {}
56
57
:invite-teammates invites/teammates-invites
57
58
:org-settings org-settings/org-settings
58
59
:account account/account
59
- :projects projects/page
60
60
61
61
:admin-settings admin/admin-settings
62
62
:build-state admin/build-state
Original file line number Diff line number Diff line change 4
4
[frontend.components.pieces.org-picker :as org-picker]
5
5
[frontend.routes :as routes]
6
6
[frontend.utils.vcs-url :as vcs-url]
7
- [om.core :as om :include-macros true ])
7
+ [om.core :as om :include-macros true ]
8
+ [frontend.components.templates.main :as main-template])
8
9
(:require-macros [frontend.utils :refer [html]]))
9
10
10
11
(defn- table [projects owner]
37
38
[:organization/by-vcs-type-and-name
38
39
[(:vcs_type org) (:login org)]])
39
40
40
- (defn page [app owner]
41
+ (defn- main-content [app owner]
41
42
(reify
42
43
om/IInitState
43
44
(init-state [_]
93
94
(if (:projects selected-org)
94
95
(om/build table (:projects selected-org))
95
96
[:div.loading-spinner common/spinner])])]])))))
97
+
98
+ (defn page [app owner]
99
+ (reify
100
+ om/IRender
101
+ (render [_]
102
+ (om/build main-template/template
103
+ {:app app
104
+ :main-content (om/build main-content app)
105
+ :header-actions (html
106
+ [:a.btn.btn-primary
107
+ {:href (routes/v1-add-projects )}
108
+ " Add Project" ])}))))
You can’t perform that action at this time.
0 commit comments