aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
authorLibravatar Balaji Vijayakumar <kuttibalaji.v6@gmail.com>2022-10-25 18:14:55 +0530
committerLibravatar GitHub <noreply@github.com>2022-10-25 12:44:55 +0000
commitb77663a3752467b7be3eff8a765a71330548d8e0 (patch)
tree16aad95e8d781684b543482f5b4423674f45be08 /src/stores
parentTransform 'AuthLayoutContainer' component hierarchy to tsx (#699) (diff)
downloadferdium-app-b77663a3752467b7be3eff8a765a71330548d8e0.tar.gz
ferdium-app-b77663a3752467b7be3eff8a765a71330548d8e0.tar.zst
ferdium-app-b77663a3752467b7be3eff8a765a71330548d8e0.zip
refactor: convert Sidebar to typescript (#703)
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/ServicesStore.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts
index c8faf2e5c..74810b81f 100644
--- a/src/stores/ServicesStore.ts
+++ b/src/stores/ServicesStore.ts
@@ -337,7 +337,7 @@ export default class ServicesStore extends TypedStore {
337 return this.all.filter(service => service.isEnabled); 337 return this.all.filter(service => service.isEnabled);
338 } 338 }
339 339
340 @computed get allDisplayed() { 340 @computed get allDisplayed(): Service[] {
341 const services = this.stores.settings.all.app.showDisabledServices 341 const services = this.stores.settings.all.app.showDisabledServices
342 ? this.all 342 ? this.all
343 : this.enabled; 343 : this.enabled;
@@ -1031,9 +1031,7 @@ export default class ServicesStore extends TypedStore {
1031 this.reorderServicesRequest.execute(services); 1031 this.reorderServicesRequest.execute(services);
1032 this.allServicesRequest.patch(data => { 1032 this.allServicesRequest.patch(data => {
1033 for (const s of data) { 1033 for (const s of data) {
1034 const service = s; 1034 s.order = services[s.id];
1035
1036 service.order = services[s.id];
1037 } 1035 }
1038 }); 1036 });
1039 } 1037 }