From d6949bc6f3a746577892898f3b6d0a0a73b60fb2 Mon Sep 17 00:00:00 2001 From: gered Date: Thu, 4 Aug 2016 22:06:26 -0400 Subject: [PATCH] move list admin actions to a button dropdown to conserve header space --- src/mtgcoll/client/routes/lists.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mtgcoll/client/routes/lists.cljs b/src/mtgcoll/client/routes/lists.cljs index 1ade7d1..a576abd 100644 --- a/src/mtgcoll/client/routes/lists.cljs +++ b/src/mtgcoll/client/routes/lists.cljs @@ -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"]]])]