Skip to content

Commit

Permalink
Add snackbar notice ids (#29364)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw authored and Glen Davies committed Mar 9, 2021
1 parent b99c087 commit e947ad7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ function GalleryEdit( props ) {
linkToText.label
),
{
id: 'gallery-attributes-linkTo',
type: 'snackbar',
}
);
Expand Down Expand Up @@ -326,6 +327,7 @@ function GalleryEdit( props ) {
? __( 'All gallery images updated to open in new tab' )
: __( 'All gallery images updated to not open in new tab' );
createSuccessNotice( noticeText, {
id: 'gallery-attributes-openInNewTab',
type: 'snackbar',
} );
}
Expand Down Expand Up @@ -356,6 +358,7 @@ function GalleryEdit( props ) {
imageSize.label
),
{
id: 'gallery-attributes-sizeSlug',
type: 'snackbar',
}
);
Expand Down

0 comments on commit e947ad7

Please sign in to comment.