mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #3092 from woocommerce/PCP-4176-things-to-do-add-pay-later-messaging-implement-logic-for-the-todo-item
Things To Do: Wire the Pay Later Messaging todo items
This commit is contained in:
commit
9a52641121
5 changed files with 182 additions and 71 deletions
|
@ -49,10 +49,10 @@ const TodoSettingsBlock = ( {
|
|||
await selectTab( tabId, todo.action.section );
|
||||
} else if ( todo.action.type === 'external' ) {
|
||||
window.open( todo.action.url, '_blank' );
|
||||
// If it has completeOnClick flag, trigger the action
|
||||
if ( todo.action.completeOnClick === true ) {
|
||||
await completeOnClick( todo.id );
|
||||
}
|
||||
}
|
||||
|
||||
if ( todo.action.completeOnClick === true ) {
|
||||
await completeOnClick( todo.id );
|
||||
}
|
||||
|
||||
if ( todo.action.modal ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue