Skip to content

Commit 02ef149

Browse files
committed
Use links for list action items
1 parent bc08919 commit 02ef149

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

css/crud.css

+9
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@
44
padding: 0;
55
}
66

7+
.crud-mui-action-item:last-child {
8+
border-right: 0;
9+
padding-right: 0;
10+
}
11+
12+
713
.crud-mui-action-item {
14+
cursor: pointer;
815
display: inline;
916
margin-left: 5px;
17+
border-right: 1px solid black;
18+
padding-right: 5px;
1019
}
1120

1221
.content-sub-panel {

src/cljs/re_crud/skins/mui.cljs

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
(doall (for [[action-name {:keys [dispatch-fn enabled?]
1919
:or {enabled? (constantly true)} :as action}] actions]
2020
^{:key (str resource-name action-name)}
21-
[:li.crud-mui-action-item [:button {:on-click (dispatch-fn resource)
22-
:class "mui-btn mui-btn--primary mui-btn--small"
23-
:disabled (not (enabled? resource))} action-name]]))]))
21+
[:li.crud-mui-action-item [:a {:on-click (dispatch-fn resource)} action-name]]))]))
2422

2523
(defn list [id form view events config]
2624
(fn []

0 commit comments

Comments
 (0)