Skip to content

Commit 4234355

Browse files
committed
interactive tasks: Add the popover ID by default in meta
1 parent 77ea83e commit 4234355

3 files changed

Lines changed: 2 additions & 14 deletions

File tree

classes/suggested-tasks/providers/class-email-sending.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,4 @@ public function the_popover_content() {
297297
]
298298
);
299299
}
300-
301-
/**
302-
* Modify task data before injecting it.
303-
*
304-
* @param array $task_data The task data.
305-
*
306-
* @return array
307-
*/
308-
protected function modify_injection_task_data( $task_data ) {
309-
$task_data['popover_id'] = 'prpl-popover-' . static::POPOVER_ID;
310-
311-
return $task_data;
312-
}
313300
}

classes/suggested-tasks/providers/class-tasks.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ public function get_task_details( $task_data = [] ) {
547547
'link_setting' => $this->get_link_setting(),
548548
'dismissable' => $this->is_dismissable(),
549549
'snoozable' => $this->is_snoozable(),
550+
'popover_id' => static::IS_INTERACTIVE ? 'prpl-popover-' . static::POPOVER_ID : '',
550551
];
551552
}
552553

views/js-templates/suggested-task.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ <h3 style="width: 100%;">
110110
</div>
111111
<# document.dispatchEvent( new CustomEvent( 'prpl/suggestedTask/itemInjected', { detail: data } ) ); #>
112112
</li>
113-
</script>
113+
</script>

0 commit comments

Comments
 (0)