Skip to content

Commit

Permalink
Drop redundant "Remove" button from customerOrder-items-select toolba…
Browse files Browse the repository at this point in the history
…r, because it does nothing
  • Loading branch information
akak1977 committed Jun 15, 2020
1 parent a0cd13f commit 1b6679d
Showing 1 changed file with 0 additions and 13 deletions.
Expand Up @@ -45,19 +45,6 @@ angular.module('virtoCommerce.orderModule')
return _.any($scope.items, function (x) { return x.selected; });
},
permission: blade.updatePermission
},
{
name: "platform.commands.remove", icon: 'fa fa-trash-o',
executeMethod: function () {
var lineItems = blade.currentEntity.items;
blade.currentEntity.items = _.difference(lineItems, _.filter(lineItems, function (x) { return x.selected }));
blade.recalculateFn();
$scope.pageSettings.totalItems = blade.currentEntity.items.length;
},
canExecuteMethod: function () {
return _.any(blade.currentEntity.items, function (x) { return x.selected; });
},
permission: blade.updatePermission
}
];

Expand Down

0 comments on commit 1b6679d

Please sign in to comment.