diff --git a/.changeset/chilly-keys-count.md b/.changeset/chilly-keys-count.md new file mode 100644 index 0000000000..3bbc4e40dc --- /dev/null +++ b/.changeset/chilly-keys-count.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-playlist': patch +--- + +Displaying an alert popup each time the Playlist is created or deleted diff --git a/plugins/playlist/src/components/EntityPlaylistDialog/EntityPlaylistDialog.tsx b/plugins/playlist/src/components/EntityPlaylistDialog/EntityPlaylistDialog.tsx index 26b727fbc0..38ea156320 100644 --- a/plugins/playlist/src/components/EntityPlaylistDialog/EntityPlaylistDialog.tsx +++ b/plugins/playlist/src/components/EntityPlaylistDialog/EntityPlaylistDialog.tsx @@ -131,12 +131,12 @@ export const EntityPlaylistDialog = (props: EntityPlaylistDialogProps) => { await playlistApi.addPlaylistEntities(playlistId, [ stringifyEntityRef(entity!), ]); + navigate(playlistRoute({ playlistId })); alertApi.post({ message: `Added playlist '${playlist.name}'`, severity: 'success', display: 'transient', }); - navigate(playlistRoute({ playlistId })); } catch (e) { alertApi.post({ message: `Failed to add entity to ${singularTitleLowerCase}: ${e}`,