move list admin actions to a button dropdown to conserve header space
This commit is contained in:
parent
a23e780e0f
commit
d6949bc6f3
|
@ -195,16 +195,16 @@
|
||||||
" "]
|
" "]
|
||||||
(if (auth/can-modify-data?)
|
(if (auth/can-modify-data?)
|
||||||
[:span
|
[:span
|
||||||
[bs/ButtonGroup
|
[bs/DropdownButton {:title "Actions"}
|
||||||
[bs/Button
|
[bs/MenuItem
|
||||||
{:on-click #(js/alert "TODO: Copy to Owned")}
|
{:on-click #(js/alert "TODO: Copy to Owned")}
|
||||||
"Copy to Owned Collection"]
|
"Copy to Owned Collection"]
|
||||||
(if (auth/auth-required?)
|
(if (auth/auth-required?)
|
||||||
[bs/Button
|
[bs/MenuItem
|
||||||
{:bsStyle "warning"
|
{:bsStyle "warning"
|
||||||
:on-click #(change-list-visibility! list-id (not (:is_public @list)))}
|
:on-click #(change-list-visibility! list-id (not (:is_public @list)))}
|
||||||
(if (:is_public @list) "Make Private" "Make Public")])
|
(if (:is_public @list) "Make Private" "Make Public")])
|
||||||
[bs/Button
|
[bs/MenuItem
|
||||||
{:bsStyle "danger"
|
{:bsStyle "danger"
|
||||||
:on-click #(reset! show-delete-confirm? true)}
|
:on-click #(reset! show-delete-confirm? true)}
|
||||||
"Delete"]]])]
|
"Delete"]]])]
|
||||||
|
|
Loading…
Reference in a new issue