@overmap-ai/core 1.0.35-projects-licensing.13 → 1.0.35-projects-licensing.15

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.
@@ -4879,7 +4879,7 @@ class IssueService extends BaseApiService {
4879
4879
  });
4880
4880
  }
4881
4881
  store.dispatch(removeIssue(issuePayload.offline_id));
4882
- store.dispatch(store.dispatch(updateActiveProjectIssuesCount(-1)));
4882
+ store.dispatch(updateActiveProjectIssuesCount(-1));
4883
4883
  throw error2;
4884
4884
  });
4885
4885
  return [issuePayload, promise];
@@ -5688,11 +5688,11 @@ class UserFormSubmissionService extends BaseApiService {
5688
5688
  store.dispatch(addUserFormSubmission(offlineResultWithoutFiles));
5689
5689
  void promise.then((result) => {
5690
5690
  store.dispatch(addUserFormSubmission(result));
5691
- store.dispatch(store.dispatch(updateActiveProjectFormSubmissionsCount(1)));
5691
+ store.dispatch(updateActiveProjectFormSubmissionsCount(1));
5692
5692
  return result;
5693
5693
  }).catch(() => {
5694
5694
  store.dispatch(deleteUserFormSubmission(payload.offline_id));
5695
- store.dispatch(store.dispatch(updateActiveProjectFormSubmissionsCount(-1)));
5695
+ store.dispatch(updateActiveProjectFormSubmissionsCount(-1));
5696
5696
  });
5697
5697
  const settledPromise = Promise.all([promise, ...attachFilesPromises]).then(() => promise);
5698
5698
  return [fullOfflineResult, settledPromise];
@@ -5714,7 +5714,7 @@ class UserFormSubmissionService extends BaseApiService {
5714
5714
  } catch (e) {
5715
5715
  if (submission) {
5716
5716
  store.dispatch(addUserFormSubmission(submission));
5717
- store.dispatch(store.dispatch(updateActiveProjectFormSubmissionsCount(1)));
5717
+ store.dispatch(updateActiveProjectFormSubmissionsCount(1));
5718
5718
  }
5719
5719
  throw e;
5720
5720
  }
@@ -6175,6 +6175,7 @@ class OrganizationService extends BaseApiService {
6175
6175
  }
6176
6176
  class LicenseService extends BaseApiService {
6177
6177
  async pauseLicense(license) {
6178
+ this.client.store.dispatch(setIsFetchingInitialData(true));
6178
6179
  return this.enqueueRequest({
6179
6180
  description: "Pause license",
6180
6181
  method: HttpMethod.DELETE,
@@ -6186,10 +6187,12 @@ class LicenseService extends BaseApiService {
6186
6187
  blocks: []
6187
6188
  }).then((result) => {
6188
6189
  this.client.store.dispatch(updateLicense(result));
6190
+ this.client.store.dispatch(setIsFetchingInitialData(false));
6189
6191
  return result;
6190
6192
  });
6191
6193
  }
6192
6194
  async resumeLicense(license) {
6195
+ this.client.store.dispatch(setIsFetchingInitialData(true));
6193
6196
  return this.enqueueRequest({
6194
6197
  description: "Resume license",
6195
6198
  method: HttpMethod.PATCH,
@@ -6205,6 +6208,7 @@ class LicenseService extends BaseApiService {
6205
6208
  });
6206
6209
  }
6207
6210
  async cancelLicense(license) {
6211
+ this.client.store.dispatch(setIsFetchingInitialData(true));
6208
6212
  return this.enqueueRequest({
6209
6213
  description: "Cancel license",
6210
6214
  method: HttpMethod.DELETE,