Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ angular.module('virtoCommerce.inventoryModule')
id: "confirmDelete",
title: "inventory.dialogs.fulfillment-delete.title",
message: "inventory.dialogs.fulfillment-delete.message",
name: blade.currentEntity.name,
callback: function (remove) {
if (remove) {
blade.isLoading = true;
Expand All @@ -130,7 +131,7 @@ angular.module('virtoCommerce.inventoryModule')
}
}
};
dialogService.showConfirmationDialog(dialog);
dialogService.showDeleteConfirmationDialog(dialog);
}

blade.onClose = function (closeCallback) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ angular.module('virtoCommerce.inventoryModule')
id: "confirmDelete",
title: "inventory.dialogs.fulfillment-delete.title",
message: "inventory.dialogs.fulfillment-delete.message",
name: item.name,
callback: function (remove) {
if (remove) {
blade.isLoading = true;
Expand All @@ -86,7 +87,7 @@ angular.module('virtoCommerce.inventoryModule')
}
}
}
dialogService.showConfirmationDialog(dialog);
dialogService.showDeleteConfirmationDialog(dialog);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List view passes name instead of count to dialog

Medium Severity

The list view delete dialog passes name: item.name, making it behave identically to the detail view. Per the PR description and test plan, the list view dialog is supposed to show a fulfillment center count. The new fulfillment-center localization key (e.g., "{{count}} fulfillment center(s)") was added across all 13 locale files specifically for this purpose, but is never referenced by the JavaScript code. The dialog likely needs a count property and a reference to the fulfillment-center translation key instead of (or in addition to) name.

Additional Locations (1)
Fix in Cursor Fix in Web

}

// simple and advanced filtering
Expand Down
Loading