move list admin actions to a button dropdown to conserve header space

This commit is contained in:
Gered 2016-08-04 22:06:26 -04:00
parent a23e780e0f
commit d6949bc6f3

View file

@ -195,16 +195,16 @@
" "]
(if (auth/can-modify-data?)
[:span
[bs/ButtonGroup
[bs/Button
[bs/DropdownButton {:title "Actions"}
[bs/MenuItem
{:on-click #(js/alert "TODO: Copy to Owned")}
"Copy to Owned Collection"]
(if (auth/auth-required?)
[bs/Button
[bs/MenuItem
{:bsStyle "warning"
:on-click #(change-list-visibility! list-id (not (:is_public @list)))}
(if (:is_public @list) "Make Private" "Make Public")])
[bs/Button
[bs/MenuItem
{:bsStyle "danger"
:on-click #(reset! show-delete-confirm? true)}
"Delete"]]])]