@annalib/anna-core 19.0.8 → 19.0.9

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.
@@ -2709,16 +2709,22 @@ class AnnaColumnTimeFilterComponent {
2709
2709
  return this.isFilterChanged;
2710
2710
  }
2711
2711
  disableTimeFilterApplyButton() {
2712
- if (this.showFilterComponent && this.showSortComponent) {
2713
- let isFilterChanged = this.checkIfTimeTooltipIsFiltered();
2714
- let isSortChanged = this.checkIfSortingChanged();
2715
- this.disableTimeFilterApplyBtn = !this.validateTimeFilterInput() || (!isSortChanged && !isFilterChanged);
2716
- }
2717
- else if (this.showFilterComponent) {
2718
- this.disableTimeFilterApplyBtn = !this.validateTimeFilterInput() || !this.checkIfTimeTooltipIsFiltered();
2712
+ //isSortAndFilterPresent is true only for dp restrictions component
2713
+ if (this.isSortAndFilterPresent) {
2714
+ this.disableTimeFilterApplyBtn = !this.checkIfTimeTooltipIsFiltered();
2719
2715
  }
2720
- else if (this.showSortComponent) {
2721
- this.disableTimeFilterApplyBtn = !this.checkIfSortingChanged();
2716
+ else {
2717
+ if (this.showFilterComponent && this.showSortComponent) {
2718
+ let isFilterChanged = this.checkIfTimeTooltipIsFiltered();
2719
+ let isSortChanged = this.checkIfSortingChanged();
2720
+ this.disableTimeFilterApplyBtn = !this.validateTimeFilterInput() || (!isSortChanged && !isFilterChanged);
2721
+ }
2722
+ else if (this.showFilterComponent) {
2723
+ this.disableTimeFilterApplyBtn = !this.validateTimeFilterInput() || !this.checkIfTimeTooltipIsFiltered();
2724
+ }
2725
+ else if (this.showSortComponent) {
2726
+ this.disableTimeFilterApplyBtn = !this.checkIfSortingChanged();
2727
+ }
2722
2728
  }
2723
2729
  }
2724
2730
  checkIfSortingChanged() {