@skysoftware-co/bayan-hr-widgets-ui 2.0.30 → 2.0.31

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.
@@ -4655,7 +4655,12 @@ class MyTeamPopupComponent {
4655
4655
  this.loadPage(true);
4656
4656
  }
4657
4657
  onReachBottom() {
4658
- if (this.isDataLoading() || !this.hasMoreData()) {
4658
+ if (this.isDataLoading()) {
4659
+ this.dataScrollView?.instance?.release(false);
4660
+ return;
4661
+ }
4662
+ if (!this.hasMoreData()) {
4663
+ this.dataScrollView?.instance?.release(false);
4659
4664
  return;
4660
4665
  }
4661
4666
  void this.loadPage(false).finally(() => {
@@ -4730,6 +4735,7 @@ class MyTeamPopupComponent {
4730
4735
  if (reset) {
4731
4736
  myTeamSubordinatesInitialLoading.set(true);
4732
4737
  this.hasResolvedResetLoad.set(false);
4738
+ this.dataScrollView?.instance?.release(false);
4733
4739
  this.resetState();
4734
4740
  }
4735
4741
  this.isDataLoading.set(true);
@@ -4754,6 +4760,9 @@ class MyTeamPopupComponent {
4754
4760
  this.dataScrollView?.instance?.update();
4755
4761
  const hasMore = this.loadedCount < this.totalCount && pageData.length > 0;
4756
4762
  this.hasMoreData.set(hasMore);
4763
+ if (reset) {
4764
+ await this.loadRemainingPagesIfNeeded();
4765
+ }
4757
4766
  }
4758
4767
  catch (err) {
4759
4768
  this.errorOccurred.emit(err?.error?.ResponseData?.Errors?.[0]?.Message);