aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.ts
diff options
context:
space:
mode:
authorLibravatar muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>2022-11-17 05:45:39 +0530
committerLibravatar GitHub <noreply@github.com>2022-11-17 00:15:39 +0000
commitd9502c7516bc2d4ae467c6ea8a2e4816b0885f37 (patch)
treeb339c587a5529ac26d52cfc12d9972a8a00255e6 /src/stores/ServicesStore.ts
parentTransform JSX components to TSX (#755) (diff)
downloadferdium-app-d9502c7516bc2d4ae467c6ea8a2e4816b0885f37.tar.gz
ferdium-app-d9502c7516bc2d4ae467c6ea8a2e4816b0885f37.tar.zst
ferdium-app-d9502c7516bc2d4ae467c6ea8a2e4816b0885f37.zip
Transfrom workspace components to ts (#775)
Diffstat (limited to 'src/stores/ServicesStore.ts')
-rw-r--r--src/stores/ServicesStore.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts
index 74810b81f..4fdd9d5ad 100644
--- a/src/stores/ServicesStore.ts
+++ b/src/stores/ServicesStore.ts
@@ -477,7 +477,7 @@ export default class ServicesStore extends TypedStore {
477 : this._cleanUpTeamIdAndCustomUrl(recipeId, serviceData); 477 : this._cleanUpTeamIdAndCustomUrl(recipeId, serviceData);
478 478
479 const response = await this.createServiceRequest.execute(recipeId, data) 479 const response = await this.createServiceRequest.execute(recipeId, data)
480 ._promise; 480 .promise;
481 481
482 this.allServicesRequest.patch(result => { 482 this.allServicesRequest.patch(result => {
483 if (!result) return; 483 if (!result) return;
@@ -536,7 +536,7 @@ export default class ServicesStore extends TypedStore {
536 536
537 const newData = serviceData; 537 const newData = serviceData;
538 if (serviceData.iconFile) { 538 if (serviceData.iconFile) {
539 await request._promise; 539 await request.promise;
540 540
541 newData.iconUrl = request.result.data.iconUrl; 541 newData.iconUrl = request.result.data.iconUrl;
542 newData.hasCustomUploadedIcon = true; 542 newData.hasCustomUploadedIcon = true;
@@ -562,7 +562,7 @@ export default class ServicesStore extends TypedStore {
562 ); 562 );
563 }); 563 });
564 564
565 await request._promise; 565 await request.promise;
566 this.actionStatus = request.result.status; 566 this.actionStatus = request.result.status;
567 567
568 if (service.isEnabled) { 568 if (service.isEnabled) {
@@ -596,7 +596,7 @@ export default class ServicesStore extends TypedStore {
596 remove(result, (c: Service) => c.id === serviceId); 596 remove(result, (c: Service) => c.id === serviceId);
597 }); 597 });
598 598
599 await request._promise; 599 await request.promise;
600 this.actionStatus = request.result.status; 600 this.actionStatus = request.result.status;
601 } 601 }
602 602
@@ -637,7 +637,7 @@ export default class ServicesStore extends TypedStore {
637 @action async _clearCache({ serviceId }) { 637 @action async _clearCache({ serviceId }) {
638 this.clearCacheRequest.reset(); 638 this.clearCacheRequest.reset();
639 const request = this.clearCacheRequest.execute(serviceId); 639 const request = this.clearCacheRequest.execute(serviceId);
640 await request._promise; 640 await request.promise;
641 } 641 }
642 642
643 @action _setIsActive(service: Service, state: boolean): void { 643 @action _setIsActive(service: Service, state: boolean): void {