From 1fd97a01b2b55ae9ae17f47fe0c86b99afd3771e Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Thu, 5 May 2022 01:23:19 +0100 Subject: Feature: makes Services location in sidebar changeable (#95) --- src/helpers/i18n-helpers.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/helpers') diff --git a/src/helpers/i18n-helpers.ts b/src/helpers/i18n-helpers.ts index e6c66c7d3..9d48a0cf7 100644 --- a/src/helpers/i18n-helpers.ts +++ b/src/helpers/i18n-helpers.ts @@ -24,6 +24,7 @@ export function getSelectOptions({ resetToDefaultText = '', automaticDetectionText = '', sort = true, + addDefault=false, }) { const options: object[] = []; @@ -41,11 +42,13 @@ export function getSelectOptions({ }); } - options.push({ - value: '───', - label: '───', - disabled: true, - }); + if (addDefault) { + options.push({ + value: '───', + label: '───', + disabled: true, + }); + } let keys = Object.keys(locales); if (sort) { -- cgit v1.2.3-54-g00ecf