From 04d1e0aaecdb0235d9a281b16f9eddccddb4cb57 Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Sat, 21 Aug 2021 16:32:10 +0530 Subject: Incorrect position while adding a new service when there were pre-existing services (#1820) --- src/internal-server/app/Controllers/Http/ServiceController.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/internal-server/app/Controllers/Http/ServiceController.js') 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'); const uuid = require('uuid/v4'); const path = require('path'); const fs = require('fs-extra'); -const { LOCAL_HOSTNAME } = require('../../../../config'); +const { LOCAL_HOSTNAME, DEFAULT_SERVICE_ORDER } = require('../../../../config'); const hostname = LOCAL_HOSTNAME; const port = Env.get('PORT'); @@ -54,7 +54,7 @@ class ServiceController { isMuted: false, isDarkModeEnabled: '', // TODO: This should ideally be a boolean (false). But, changing it caused the sidebar toggle to not work. spellcheckerLanguage: '', - order: 1, + order: DEFAULT_SERVICE_ORDER, customRecipe: false, hasCustomIcon: false, workspaces: [], @@ -83,7 +83,7 @@ class ServiceController { isEnabled: true, isMuted: false, isNotificationEnabled: true, - order: 1, + order: DEFAULT_SERVICE_ORDER, spellcheckerLanguage: '', workspaces: [], ...JSON.parse(service.settings), @@ -257,7 +257,7 @@ class ServiceController { isEnabled: true, isMuted: false, isNotificationEnabled: true, - order: 1, + order: DEFAULT_SERVICE_ORDER, spellcheckerLanguage: '', workspaces: [], ...JSON.parse(service.settings), -- cgit v1.2.3-54-g00ecf