Skip to content

Commit

Permalink
Payments Dashboard: Mark notices as inline to keep in place
Browse files Browse the repository at this point in the history
Sometimes if they don't have this class Core will move them to the top of the screen, where admin notices are typically displayed.
  • Loading branch information
iandunn committed Jan 27, 2023
1 parent af80fa3 commit 3cfd0d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@

try {
if ( response.hasOwnProperty( 'success' ) && true === response.success ) {
statusMessage.addClass( 'notice notice-success' );
statusMessage.addClass( 'notice notice-success inline' );
statusMessage.html( _.escape( response.data.success ) );
} else {
statusMessage.addClass( 'notice notice-error' );
statusMessage.addClass( 'notice notice-error inline' );
statusMessage.html( _.escape( 'ERROR: ' + response.data.error ) );

// todo bring button back so they can try again?
Expand Down

0 comments on commit 3cfd0d2

Please sign in to comment.