Closed (fixed)
Project:
Commerce Core
Version:
3.x-dev
Component:
Other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2026 at 13:06 UTC
Updated:
10 Nov 2026 at 14:40 UTC
Jump to comment: Most recent
On the Commerce dashboard (/admin/commerce), the inbox needs Drupal's AJAX library:
Clicking a message calls Drupal.ajax() to mark it as read.
The Dismiss link uses the use-ajax class.
The commerce/dashboard library in commerce.libraries.yml does not declare core/drupal.ajax. It works only when another module, such as Toolbar, loads AJAX on the page. Without it, Drupal.ajax is undefined. The read click then throws a JavaScript error, and Dismiss does a full page load to the route.
Affects Commerce 3.x. 8.x-2.x has no inbox.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
tbkot commentedComment #5
jsacksick commented