@indice/ng-components 0.2.158-beta.2 → 0.2.158-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3704,7 +3704,7 @@
|
|
|
3704
3704
|
// changing the view mode does not require reloading...
|
|
3705
3705
|
_this.view = params.get('view') || ListViewType.Tiles;
|
|
3706
3706
|
// console.log('route changes ', this.view);
|
|
3707
|
-
if (params.get('search') !== _this.search) {
|
|
3707
|
+
if (params.get('search') !== null && params.get('search') !== _this.search) {
|
|
3708
3708
|
_this.searchChanged(params.get('search'));
|
|
3709
3709
|
}
|
|
3710
3710
|
var page = +(params.get('page') || 1);
|
|
@@ -3721,9 +3721,9 @@
|
|
|
3721
3721
|
if (params.get('sort') !== _this.sort) {
|
|
3722
3722
|
_this.sort = params.get('sort');
|
|
3723
3723
|
}
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3724
|
+
if (params.get('dir') !== _this.sortdir) {
|
|
3725
|
+
_this.sortdir = params.get('dir');
|
|
3726
|
+
}
|
|
3727
3727
|
});
|
|
3728
3728
|
// just to sync params in query
|
|
3729
3729
|
this.setRouteParams(true);
|
|
@@ -3731,6 +3731,7 @@
|
|
|
3731
3731
|
};
|
|
3732
3732
|
BaseListComponent.prototype.setRouteParams = function (locationChange) {
|
|
3733
3733
|
if (locationChange === void 0) { locationChange = false; }
|
|
3734
|
+
console.log(this.sortdir);
|
|
3734
3735
|
this.router$.navigate([], {
|
|
3735
3736
|
relativeTo: this.route$, queryParams: {
|
|
3736
3737
|
view: this.view,
|