angular.module('virtoCommerce.catalogModule')
.controller('virtoCommerce.catalogModule.categoryAssetWidgetController', ['$scope', 'platformWebApp.bladeNavigationService', function ($scope, bladeNavigationService) {

    var blade = $scope.widget.blade;

    $scope.openBlade = function () {
        var newBlade = {
            id: "categoryAsset",
            item: blade.currentEntity,
            controller: 'virtoCommerce.catalogModule.itemAssetController',
            template: 'Modules/$(VirtoCommerce.Catalog)/Scripts/blades/item-asset-list.tpl.html'
        };
        bladeNavigationService.showBlade(newBlade, blade);
    };

}]);
