diff --git a/src/components/Form/Settings/Dropdown/Dropdown.jsx b/src/components/Form/Settings/Dropdown/Dropdown.jsx index 320781ed..a5bc6304 100644 --- a/src/components/Form/Settings/Dropdown/Dropdown.jsx +++ b/src/components/Form/Settings/Dropdown/Dropdown.jsx @@ -166,6 +166,7 @@ const Dropdown = memo((props) => { const id = 'dropdown' + props.name; const label = props.label || ''; const selectedItem = props.items.find((item) => item?.value === value); + const defaultValue = props.default || props.items[0]?.value; return (
@@ -226,7 +227,15 @@ const Dropdown = memo((props) => { aria-selected={value === item.value} tabIndex={0} > - {item.text} + + {item.text} + {item.value === defaultValue && ( + + {' '} + ({variables.getMessage('modals.main.settings.buttons.default')}) + + )} + {value === item.value && }
) : null, diff --git a/src/components/Form/Settings/Dropdown/Dropdown.scss b/src/components/Form/Settings/Dropdown/Dropdown.scss index 00804a3c..e4c9c03d 100644 --- a/src/components/Form/Settings/Dropdown/Dropdown.scss +++ b/src/components/Form/Settings/Dropdown/Dropdown.scss @@ -242,6 +242,12 @@ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + + .dropdown-option-default { + @include themed { + color: t($subColor); + } + } } .dropdown-option-check { diff --git a/src/i18n/locales/ar.json b/src/i18n/locales/ar.json index e2a1a81b..d32ebc0b 100644 --- a/src/i18n/locales/ar.json +++ b/src/i18n/locales/ar.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "إعادة تعيين", + "default": "Default", "import": "استيراد", "export": "تصدير", "cancel": "Cancel", diff --git a/src/i18n/locales/arz.json b/src/i18n/locales/arz.json index fbf71f97..f1d5375c 100644 --- a/src/i18n/locales/arz.json +++ b/src/i18n/locales/arz.json @@ -543,6 +543,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Import", "export": "Export", "cancel": "Cancel", diff --git a/src/i18n/locales/az.json b/src/i18n/locales/az.json index 918a0d8b..163dae79 100644 --- a/src/i18n/locales/az.json +++ b/src/i18n/locales/az.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Sıfırla", + "default": "Default", "import": "İdxal et", "export": "İxrac et", "cancel": "Cancel", diff --git a/src/i18n/locales/azb.json b/src/i18n/locales/azb.json index 143a3693..38082f73 100644 --- a/src/i18n/locales/azb.json +++ b/src/i18n/locales/azb.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Sıfırla", + "default": "Default", "import": "İdxal et", "export": "İxrac et", "cancel": "Cancel", diff --git a/src/i18n/locales/bn.json b/src/i18n/locales/bn.json index 4c1d35fe..34a1e860 100644 --- a/src/i18n/locales/bn.json +++ b/src/i18n/locales/bn.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Import", "export": "Export", "cancel": "Cancel", diff --git a/src/i18n/locales/de_DE.json b/src/i18n/locales/de_DE.json index 2ef4f93d..5158e47c 100644 --- a/src/i18n/locales/de_DE.json +++ b/src/i18n/locales/de_DE.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Zurücksetzen", + "default": "Default", "import": "Importieren", "export": "Exportieren", "cancel": "Cancel", diff --git a/src/i18n/locales/el.json b/src/i18n/locales/el.json index 492ab189..78f52554 100644 --- a/src/i18n/locales/el.json +++ b/src/i18n/locales/el.json @@ -543,6 +543,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Import", "export": "Export", "cancel": "Cancel", diff --git a/src/i18n/locales/en_GB.json b/src/i18n/locales/en_GB.json index 79923224..d863dfb8 100644 --- a/src/i18n/locales/en_GB.json +++ b/src/i18n/locales/en_GB.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Import", "export": "Export", "cancel": "Cancel", diff --git a/src/i18n/locales/en_US.json b/src/i18n/locales/en_US.json index 2202e9de..e2350ff8 100644 --- a/src/i18n/locales/en_US.json +++ b/src/i18n/locales/en_US.json @@ -543,6 +543,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Import", "export": "Export", "cancel": "Cancel", diff --git a/src/i18n/locales/es.json b/src/i18n/locales/es.json index 9b15aa84..c0d4f0c7 100644 --- a/src/i18n/locales/es.json +++ b/src/i18n/locales/es.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Reiniciar", + "default": "Default", "import": "Importar", "export": "Exportar", "cancel": "Cancel", diff --git a/src/i18n/locales/es_419.json b/src/i18n/locales/es_419.json index 10f0e797..3adcd0dd 100644 --- a/src/i18n/locales/es_419.json +++ b/src/i18n/locales/es_419.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Reiniciar", + "default": "Default", "import": "Importar", "export": "Exportar", "cancel": "Cancel", diff --git a/src/i18n/locales/et.json b/src/i18n/locales/et.json index cc822235..fca99113 100644 --- a/src/i18n/locales/et.json +++ b/src/i18n/locales/et.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Lähtesta", + "default": "Default", "import": "Impordi", "export": "Ekspordi", "cancel": "Cancel", diff --git a/src/i18n/locales/fa.json b/src/i18n/locales/fa.json index 38e8f0bf..2b1f89a2 100644 --- a/src/i18n/locales/fa.json +++ b/src/i18n/locales/fa.json @@ -543,6 +543,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Import", "export": "Export", "cancel": "Cancel", diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json index 2e2beaba..615db3a3 100644 --- a/src/i18n/locales/fr.json +++ b/src/i18n/locales/fr.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Réinitialiser", + "default": "Default", "import": "Importer", "export": "Exporter", "cancel": "Cancel", diff --git a/src/i18n/locales/hu.json b/src/i18n/locales/hu.json index 678e2669..ccfb786e 100644 --- a/src/i18n/locales/hu.json +++ b/src/i18n/locales/hu.json @@ -543,6 +543,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Import", "export": "Export", "cancel": "Cancel", diff --git a/src/i18n/locales/id_ID.json b/src/i18n/locales/id_ID.json index e2e449ed..9a72aac9 100644 --- a/src/i18n/locales/id_ID.json +++ b/src/i18n/locales/id_ID.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Impor", "export": "Ekspor", "cancel": "Cancel", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 7b0d017e..a534f306 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -543,6 +543,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Import", "export": "Export", "cancel": "Cancel", diff --git a/src/i18n/locales/lt.json b/src/i18n/locales/lt.json index ba09ec80..b2b9cb27 100644 --- a/src/i18n/locales/lt.json +++ b/src/i18n/locales/lt.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Atstatyti", + "default": "Default", "import": "Importuoti", "export": "Eksportuoti", "cancel": "Cancel", diff --git a/src/i18n/locales/lv.json b/src/i18n/locales/lv.json index d06e1f63..9cd49e16 100644 --- a/src/i18n/locales/lv.json +++ b/src/i18n/locales/lv.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Atiestatīt", + "default": "Default", "import": "Importēt", "export": "Eksportēt", "cancel": "Cancel", diff --git a/src/i18n/locales/nl.json b/src/i18n/locales/nl.json index 810eac01..e578ca87 100644 --- a/src/i18n/locales/nl.json +++ b/src/i18n/locales/nl.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Herstellen", + "default": "Default", "import": "Importeren", "export": "Exporteren", "cancel": "Cancel", diff --git a/src/i18n/locales/no.json b/src/i18n/locales/no.json index ecc1c870..e573bf73 100644 --- a/src/i18n/locales/no.json +++ b/src/i18n/locales/no.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Nullstill", + "default": "Default", "import": "Importer", "export": "Eksporter", "cancel": "Cancel", diff --git a/src/i18n/locales/peo.json b/src/i18n/locales/peo.json index ea3fabd9..2fa5a612 100644 --- a/src/i18n/locales/peo.json +++ b/src/i18n/locales/peo.json @@ -543,6 +543,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Import", "export": "Export", "cancel": "Cancel", diff --git a/src/i18n/locales/pt.json b/src/i18n/locales/pt.json index dfae15b1..6bbc210b 100644 --- a/src/i18n/locales/pt.json +++ b/src/i18n/locales/pt.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Redefinir", + "default": "Default", "import": "Importar", "export": "Exportar", "cancel": "Cancel", diff --git a/src/i18n/locales/pt_BR.json b/src/i18n/locales/pt_BR.json index b155c69f..eafd1f7f 100644 --- a/src/i18n/locales/pt_BR.json +++ b/src/i18n/locales/pt_BR.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Redefinir", + "default": "Default", "import": "Importar", "export": "Exportar", "cancel": "Cancel", diff --git a/src/i18n/locales/ru.json b/src/i18n/locales/ru.json index 5a0b7674..9bfe383d 100644 --- a/src/i18n/locales/ru.json +++ b/src/i18n/locales/ru.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Сбросить", + "default": "Default", "import": "Импорт", "export": "Экспорт", "cancel": "Cancel", diff --git a/src/i18n/locales/sl.json b/src/i18n/locales/sl.json index a3e6fdbe..7ec660e7 100644 --- a/src/i18n/locales/sl.json +++ b/src/i18n/locales/sl.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Ponastavi", + "default": "Default", "import": "Uvozi", "export": "Izvozi", "cancel": "Cancel", diff --git a/src/i18n/locales/sv.json b/src/i18n/locales/sv.json index 750ee61f..bd60ef70 100644 --- a/src/i18n/locales/sv.json +++ b/src/i18n/locales/sv.json @@ -543,6 +543,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Import", "export": "Export", "cancel": "Cancel", diff --git a/src/i18n/locales/ta.json b/src/i18n/locales/ta.json index a2f7fe31..2a1efb8e 100644 --- a/src/i18n/locales/ta.json +++ b/src/i18n/locales/ta.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "மீட்டமை", + "default": "Default", "import": "இறக்குமதி", "export": "ஏற்றுமதி", "cancel": "Cancel", diff --git a/src/i18n/locales/tr_TR.json b/src/i18n/locales/tr_TR.json index 4b0e075e..02fb227d 100644 --- a/src/i18n/locales/tr_TR.json +++ b/src/i18n/locales/tr_TR.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Sıfırla", + "default": "Default", "import": "İçeri Aktar", "export": "Dışarı Aktar", "cancel": "Cancel", diff --git a/src/i18n/locales/uk.json b/src/i18n/locales/uk.json index 1001c544..1503d143 100644 --- a/src/i18n/locales/uk.json +++ b/src/i18n/locales/uk.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "Скинути", + "default": "Default", "import": "Імпорт", "export": "Експорт", "cancel": "Cancel", diff --git a/src/i18n/locales/vi.json b/src/i18n/locales/vi.json index 39d094c9..29fc74bf 100644 --- a/src/i18n/locales/vi.json +++ b/src/i18n/locales/vi.json @@ -543,6 +543,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Import", "export": "Export", "cancel": "Cancel", diff --git a/src/i18n/locales/zh_CN.json b/src/i18n/locales/zh_CN.json index 920cebf7..a3529f9c 100644 --- a/src/i18n/locales/zh_CN.json +++ b/src/i18n/locales/zh_CN.json @@ -535,6 +535,7 @@ }, "buttons": { "reset": "重置", + "default": "Default", "import": "导入", "export": "导出", "cancel": "Cancel", diff --git a/src/i18n/locales/zh_Hant.json b/src/i18n/locales/zh_Hant.json index 72474a21..011befc7 100644 --- a/src/i18n/locales/zh_Hant.json +++ b/src/i18n/locales/zh_Hant.json @@ -543,6 +543,7 @@ }, "buttons": { "reset": "Reset", + "default": "Default", "import": "Import", "export": "Export", "cancel": "Cancel",