From 9bd1cae41a47737c85fee539bb304eef2c00188f Mon Sep 17 00:00:00 2001 From: vc-ci Date: Thu, 18 Jul 2024 09:20:19 +0000 Subject: [PATCH 1/2] 3.824.0 --- Directory.Build.props | 2 +- src/VirtoCommerce.OrdersModule.Web/module.manifest | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 9a8757cd..68a1e097 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ - 3.823.0 + 3.824.0 $(VersionSuffix)-$(BuildNumber) diff --git a/src/VirtoCommerce.OrdersModule.Web/module.manifest b/src/VirtoCommerce.OrdersModule.Web/module.manifest index 7ae7e2ea..f63cb069 100644 --- a/src/VirtoCommerce.OrdersModule.Web/module.manifest +++ b/src/VirtoCommerce.OrdersModule.Web/module.manifest @@ -1,7 +1,7 @@ VirtoCommerce.Orders - 3.823.0 + 3.824.0 3.825.0 From 03153e58776ea24239e8ce2078a18244c25d7fdd Mon Sep 17 00:00:00 2001 From: Artem Dudarev Date: Fri, 9 Aug 2024 20:58:54 +0200 Subject: [PATCH 2/2] fix: Fix 401 error on sign in page (#427) --- .../Scripts/order.js | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/VirtoCommerce.OrdersModule.Web/Scripts/order.js b/src/VirtoCommerce.OrdersModule.Web/Scripts/order.js index 8026c7ad..3f52a9fe 100644 --- a/src/VirtoCommerce.OrdersModule.Web/Scripts/order.js +++ b/src/VirtoCommerce.OrdersModule.Web/Scripts/order.js @@ -569,18 +569,6 @@ angular.module(moduleName, [ isVisible: function (blade) { return !checkPermissionToViewDashboard(); } }, 'mainDashboard'); - customerOrders.indexedSearchEnabled(function (data) { - if (data.result) { - var customerOrderIndexWidget = { - documentType: 'CustomerOrder', - controller: 'virtoCommerce.searchModule.indexWidgetController', - template: 'Modules/$(VirtoCommerce.Search)/Scripts/widgets/index-widget.tpl.html', - isVisible: function (blade) { return !blade.isNew; } - }; - widgetService.registerWidget(customerOrderIndexWidget, 'customerOrderDetailWidgets'); - } - }); - $http.get('Modules/$(VirtoCommerce.Orders)/Scripts/widgets/dashboard/statistics-templates.html').then(function (response) { // compile the response, which will put stuff into the cache $compile(response.data); @@ -655,6 +643,20 @@ angular.module(moduleName, [ scopeResolver.register(responsibleOrderScope); $rootScope.$on('loginStatusChanged', function (event, authContext) { + if (authContext.isAuthenticated) { + customerOrders.indexedSearchEnabled(function (data) { + if (data.result) { + var customerOrderIndexWidget = { + documentType: 'CustomerOrder', + controller: 'virtoCommerce.searchModule.indexWidgetController', + template: 'Modules/$(VirtoCommerce.Search)/Scripts/widgets/index-widget.tpl.html', + isVisible: function (blade) { return !blade.isNew; } + }; + widgetService.registerWidget(customerOrderIndexWidget, 'customerOrderDetailWidgets'); + } + }); + } + $localStorage.ordersDashboardStatistics = null; if (authContext.isAuthenticated &&