Displaying an alert popup each time the Playlist is created or deleted
Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-playlist': patch
|
||||
---
|
||||
|
||||
Displaying an alert popup each time the Playlist is created or deleted
|
||||
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user