Skip to content

Commit

Permalink
Fix for payment transactions widget
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarincev committed Jun 6, 2018
1 parent 75f971b commit d91f9fd
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
angular.module('virtoCommerce.orderModule')
angular.module('virtoCommerce.orderModule')
.controller('virtoCommerce.orderModule.paymentTransactionsWidgetController', ['$scope', '$translate', 'platformWebApp.bladeNavigationService', function ($scope, $translate, bladeNavigationService) {
var blade = $scope.widget.blade;

Expand All @@ -7,14 +7,12 @@
});

$scope.openItemsBlade = function () {
$translate('transactions', { number: $scope.operation.number }).then(function (result) {
var newBlade = {
id: 'transactions',
currentEntity: $scope.operation,
controller: 'virtoCommerce.orderModule.paymentTransactionsListController',
template: 'Modules/$(VirtoCommerce.Orders)/Scripts/blades/payment-transactions-list.tpl.html'
};
bladeNavigationService.showBlade(newBlade, blade);
});
bladeNavigationService.showBlade(newBlade, blade);
};
}]);

0 comments on commit d91f9fd

Please sign in to comment.