-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CSV Download button to Data Management page
- Loading branch information
1 parent
8248bd6
commit c45b8cf
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 14 additions & 5 deletions
19
src/com/yetanalytics/lrs_admin_ui/views/data_management.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
(ns com.yetanalytics.lrs-admin-ui.views.data-management | ||
(:require [re-frame.core :refer [subscribe]] | ||
(:require [re-frame.core :refer [dispatch subscribe]] | ||
[com.yetanalytics.lrs-admin-ui.views.data-management.delete-actor :refer [delete-actor]])) | ||
|
||
(defn data-management [] | ||
[:div {:class "left-content-wrapper"} | ||
[:h2 {:class "content-title"} | ||
@(subscribe [:lang/get :datamgmt.title])] | ||
[delete-actor]]) | ||
[:div {:class "left-content-wrapper"} | ||
;; Delete Actor | ||
[:h2 {:class "content-title"} | ||
@(subscribe [:lang/get :datamgmt.title])] | ||
[delete-actor] | ||
[:div {:class "h-divider"}] | ||
;; Download CSV | ||
[:h4 {:class "content-title"} | ||
@(subscribe [:lang/get :datamgmt.download.title])] | ||
[:input {:type "button", | ||
:class "btn-brand-bold", | ||
:on-click #(dispatch [:notification/notify false "TODO: Implement CSV Download"]) | ||
:value @(subscribe [:lang/get :datamgmt.download.button])}]]) |