From 5fed2d01c06cb53dd6e4752d9d634e06ea846a75 Mon Sep 17 00:00:00 2001 From: zeppi Date: Thu, 2 Dec 2021 20:39:08 -0500 Subject: [PATCH] list editing behind toggle button --- ui/component/collectionActions/view.jsx | 22 +++++++++++++++++++++- ui/page/collection/view.jsx | 6 +++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/ui/component/collectionActions/view.jsx b/ui/component/collectionActions/view.jsx index 1186d9dfc..73576bf1c 100644 --- a/ui/component/collectionActions/view.jsx +++ b/ui/component/collectionActions/view.jsx @@ -22,6 +22,8 @@ type Props = { collectionId: string, showInfo: boolean, setShowInfo: (boolean) => void, + showEdit: boolean, + setShowEdit: (boolean) => void, collectionHasEdits: boolean, isBuiltin: boolean, doToggleShuffleList: (string, boolean) => void, @@ -44,6 +46,8 @@ function CollectionActions(props: Props) { doToggleShuffleList, playNextUri, firstItem, + showEdit, + setShowEdit, } = props; const [doShuffle, setDoShuffle] = React.useState(false); const { push } = useHistory(); @@ -158,6 +162,17 @@ function CollectionActions(props: Props) { /> ); + const showEditButton = ( +