aboutsummaryrefslogtreecommitdiffstats
path: root/src/internal-server
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-21 16:32:10 +0530
committerLibravatar GitHub <noreply@github.com>2021-08-21 16:32:10 +0530
commit04d1e0aaecdb0235d9a281b16f9eddccddb4cb57 (patch)
tree533d9ced0128aa28d56d58430a757b166c809804 /src/internal-server
parentchore: added TODO and regenerated file [skip ci] (diff)
downloadferdium-app-04d1e0aaecdb0235d9a281b16f9eddccddb4cb57.tar.gz
ferdium-app-04d1e0aaecdb0235d9a281b16f9eddccddb4cb57.tar.zst
ferdium-app-04d1e0aaecdb0235d9a281b16f9eddccddb4cb57.zip
Incorrect position while adding a new service when there were pre-existing services (#1820)
Diffstat (limited to 'src/internal-server')
-rw-r--r--src/internal-server/app/Controllers/Http/ServiceController.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/internal-server/app/Controllers/Http/ServiceController.js b/src/internal-server/app/Controllers/Http/ServiceController.js
index c76a287f7..312306abf 100644
--- a/src/internal-server/app/Controllers/Http/ServiceController.js
+++ b/src/internal-server/app/Controllers/Http/ServiceController.js
@@ -5,7 +5,7 @@ const Env = use('Env');
5const uuid = require('uuid/v4'); 5const uuid = require('uuid/v4');
6const path = require('path'); 6const path = require('path');
7const fs = require('fs-extra'); 7const fs = require('fs-extra');
8const { LOCAL_HOSTNAME } = require('../../../../config'); 8const { LOCAL_HOSTNAME, DEFAULT_SERVICE_ORDER } = require('../../../../config');
9 9
10const hostname = LOCAL_HOSTNAME; 10const hostname = LOCAL_HOSTNAME;
11const port = Env.get('PORT'); 11const port = Env.get('PORT');
@@ -54,7 +54,7 @@ class ServiceController {
54 isMuted: false, 54 isMuted: false,
55 isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. 55 isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work.
56 spellcheckerLanguage: '', 56 spellcheckerLanguage: '',
57 order: 1, 57 order: DEFAULT_SERVICE_ORDER,
58 customRecipe: false, 58 customRecipe: false,
59 hasCustomIcon: false, 59 hasCustomIcon: false,
60 workspaces: [], 60 workspaces: [],
@@ -83,7 +83,7 @@ class ServiceController {
83 isEnabled: true, 83 isEnabled: true,
84 isMuted: false, 84 isMuted: false,
85 isNotificationEnabled: true, 85 isNotificationEnabled: true,
86 order: 1, 86 order: DEFAULT_SERVICE_ORDER,
87 spellcheckerLanguage: '', 87 spellcheckerLanguage: '',
88 workspaces: [], 88 workspaces: [],
89 ...JSON.parse(service.settings), 89 ...JSON.parse(service.settings),
@@ -257,7 +257,7 @@ class ServiceController {
257 isEnabled: true, 257 isEnabled: true,
258 isMuted: false, 258 isMuted: false,
259 isNotificationEnabled: true, 259 isNotificationEnabled: true,
260 order: 1, 260 order: DEFAULT_SERVICE_ORDER,
261 spellcheckerLanguage: '', 261 spellcheckerLanguage: '',
262 workspaces: [], 262 workspaces: [],
263 ...JSON.parse(service.settings), 263 ...JSON.parse(service.settings),