From e603dd7a963bf87033349da3a9f124e7dac0869e Mon Sep 17 00:00:00 2001 From: amendelsohn Date: Tue, 2 Jan 2024 16:17:30 -0800 Subject: [PATCH 1/2] don't make all albums public --- packages/common/src/services/audius-backend/AudiusBackend.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/common/src/services/audius-backend/AudiusBackend.ts b/packages/common/src/services/audius-backend/AudiusBackend.ts index 44e6082a3f8..39039418db6 100644 --- a/packages/common/src/services/audius-backend/AudiusBackend.ts +++ b/packages/common/src/services/audius-backend/AudiusBackend.ts @@ -1349,9 +1349,6 @@ export const audiusBackend = ({ trackIds: ID[] = [], isPrivate = true ) { - // Creating an album is automatically public. - if (isAlbum) isPrivate = false - try { const web3 = await audiusLibs.web3Manager.getWeb3() const currentBlockNumber = await web3.eth.getBlockNumber() From 8824eba64187d154c1d2ef6de7048a3fb3068892 Mon Sep 17 00:00:00 2001 From: amendelsohn Date: Tue, 2 Jan 2024 16:36:44 -0800 Subject: [PATCH 2/2] show publish button for albums --- .../collection/desktop/OwnerActionButtons.tsx | 4 ++-- .../collection/desktop/PublishButton.tsx | 12 +++++----- .../desktop/PublishConfirmationModal.tsx | 22 ++++++++++++++----- 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/packages/web/src/components/collection/desktop/OwnerActionButtons.tsx b/packages/web/src/components/collection/desktop/OwnerActionButtons.tsx index 92fb7bd5144..cfa3bd3c895 100644 --- a/packages/web/src/components/collection/desktop/OwnerActionButtons.tsx +++ b/packages/web/src/components/collection/desktop/OwnerActionButtons.tsx @@ -21,7 +21,7 @@ export const OwnerActionButtons = (props: OwnerActionButtonProps) => { const collection = useSelector((state: CommonState) => getCollection(state, { id: collectionId }) ) as Collection - const { track_count, is_private, is_album } = collection ?? {} + const { track_count, is_private } = collection ?? {} const isDisabled = track_count === 0 @@ -39,7 +39,7 @@ export const OwnerActionButtons = (props: OwnerActionButtonProps) => { } widthToHideText={BUTTON_COLLAPSE_WIDTHS.third} /> - {is_private && !is_album ? ( + {is_private ? (