Skip to content

Commit

Permalink
Merge branch 'dev' into fix/VCST-1631
Browse files Browse the repository at this point in the history
  • Loading branch information
basilkot authored Aug 15, 2024
2 parents 2d87d9f + 3b03c33 commit 736e03e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<!-- These properties will be shared for all projects -->
<PropertyGroup>
<VersionPrefix>3.824.0</VersionPrefix>
<VersionPrefix>3.825.0</VersionPrefix>
<VersionSuffix>
</VersionSuffix>
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
Expand Down
26 changes: 14 additions & 12 deletions src/VirtoCommerce.OrdersModule.Web/Scripts/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 &&
Expand Down
2 changes: 1 addition & 1 deletion src/VirtoCommerce.OrdersModule.Web/module.manifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<module>
<id>VirtoCommerce.Orders</id>
<version>3.824.0</version>
<version>3.825.0</version>
<version-tag />
<platformVersion>3.825.0</platformVersion>
<dependencies>
Expand Down

0 comments on commit 736e03e

Please sign in to comment.