Skip to content

Commit

Permalink
Update messages around reusable block interactions. (#3881)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias authored Dec 8, 2017
1 parent abfecc3 commit a655f57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blocks/api/categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const categories = [
{ slug: 'layout', title: __( 'Layout Blocks' ) },
{ slug: 'widgets', title: __( 'Widgets' ) },
{ slug: 'embed', title: __( 'Embed' ) },
{ slug: 'reusable-blocks', title: __( 'My Reusable Blocks' ) },
{ slug: 'reusable-blocks', title: __( 'Saved Blocks' ) },
];

/**
Expand Down
4 changes: 2 additions & 2 deletions editor/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,14 @@ export default {
id,
} );
dispatch( createSuccessNotice(
__( 'Reusable block updated' ),
__( 'Block updated.' ),
{ id: SAVE_REUSABLE_BLOCK_NOTICE_ID }
) );
},
( error ) => {
dispatch( { type: 'SAVE_REUSABLE_BLOCK_FAILURE', id } );
dispatch( createErrorNotice(
get( error.responseJSON, 'message', __( 'An unknown error occured' ) ),
get( error.responseJSON, 'message', __( 'An unknown error occured.' ) ),
{ id: SAVE_REUSABLE_BLOCK_NOTICE_ID }
) );
}
Expand Down

0 comments on commit a655f57

Please sign in to comment.