Skip to content

Commit

Permalink
Merge branch 'release/3.419.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
vc-ci committed Nov 7, 2023
2 parents 6b6fc2b + 3587be7 commit 6041e10
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 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.418.0</VersionPrefix>
<VersionPrefix>3.419.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ function ($rootScope, $scope, $localStorage, customerOrders, bladeUtils, dialogS
var blade = $scope.blade;
var bladeNavigationService = bladeUtils.bladeNavigationService;
$scope.uiGridConstants = uiGridConstants;
$scope.useIndexedSearch = false;

$scope.getPricesVisibility = () => authService.checkPermission('order:read_prices');

Expand Down Expand Up @@ -70,7 +71,9 @@ function ($rootScope, $scope, $localStorage, customerOrders, bladeUtils, dialogS
angular.extend(criteria, filter.current);
}

customerOrders.search(criteria, function (data) {
var endpoint = $scope.useIndexedSearch ? customerOrders.indexedSearch : customerOrders.search;

endpoint(criteria, function (data) {
blade.isLoading = false;

$scope.pageSettings.totalItems = data.totalCount;
Expand Down Expand Up @@ -229,6 +232,10 @@ function ($rootScope, $scope, $localStorage, customerOrders, bladeUtils, dialogS
return gridOptions;
};

customerOrders.indexedSearchEnabled(function (data) {
$scope.useIndexedSearch = data.result;
});


// actions on load
//No need to call this because page 'pageSettings.currentPage' is watched!!! It would trigger subsequent duplicated req...
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.418.0</version>
<version>3.419.0</version>
<version-tag />
<platformVersion>3.413.0</platformVersion>
<dependencies>
Expand Down

0 comments on commit 6041e10

Please sign in to comment.