Browse Source

Add confirm message when deleting playlist

master
jeffvli 3 years ago
parent
commit
f9b8198eb1
  1. 15
      src/components/playlist/PlaylistView.tsx

15
src/components/playlist/PlaylistView.tsx

@ -392,11 +392,24 @@ const PlaylistView = ({ ...rest }) => {
/>
</Whisper>
<Whisper
enterable
placement="auto"
trigger="click"
speaker={
<Popover>
<p>Are you sure you want to delete this playlist?</p>
<StyledButton onClick={handleDelete} appearance="link">
Yes
</StyledButton>
</Popover>
}
>
<DeleteButton
size="lg"
onClick={handleDelete}
disabled={misc.isProcessingPlaylist.includes(data?.id)}
/>
</Whisper>
</ButtonToolbar>
</div>
</div>

Loading…
Cancel
Save