Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ export const OverflowMenuButton = (props: OverflowMenuButtonProps) => {
uid,
...other
} = props
const { includeEdit = true, isFavorited, isOwnerDeactivated, trackId } = other
const {
includeDelete = true,
includeEdit = true,
isFavorited,
isOwnerDeactivated,
trackId
} = other

const removeMenuItem = {
text: removeText,
Expand All @@ -45,6 +51,7 @@ export const OverflowMenuButton = (props: OverflowMenuButtonProps) => {
...other,
type: 'track' as const,
mount: 'page',
includeDelete: onRemove ? false : includeDelete,
includeEdit,
extraMenuItems: onRemove ? [removeMenuItem] : []
}
Expand Down
Loading