Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EPMRPP-96981 || Server Settings page layout #4100

Merged
merged 14 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/localization/translated/be.json
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,8 @@
"EditWidgetModal.editWidgetSuccess": "Віджэт абноўлены!",
"EditWidgetModal.headerText": "Рэдагаваць віджэт",
"EmailFormFields.authLabel": "Аўтарызацыя",
"EmailFormFields.fromLabel": "Імя адпраўніка па змаўчанні",
"EmailFormFields.fromEmailLabel": "From Email",
"EmailFormFields.fromNameLabel": "From name",
"EmailFormFields.hostLabel": "Хост",
"EmailFormFields.passwordLabel": "Пароль",
"EmailFormFields.portFieldHint": "Магчымы толькі лічбы ад '1' да '65535'",
Expand Down Expand Up @@ -1839,6 +1840,10 @@
"SortingControl.sortByFailedItems": "Няўдалыя пункты",
"SortingControl.sortByPassingRate": "Прахадны бал",
"SortingControl.sortByTotal": "Агульная колькасць",
"SsoUsersForm.formHeader": "Instance Invitations",
"SsoUsersForm.manualInvitesDescription": "Карыстальнікі могуць адпраўляць запрашэнні іншым карыстальнікам. Калі ўключана, новыя карыстальнікі могуць быць ствараны толькі праз SSO.",
"SsoUsersForm.ssoOnlyDescription": "Новыя карыстальнікі могуць быць створаны толькі праз SSO.",
"SsoUsersForm.switcherLabel": "Толькі SSO карыстальнікі",
"StackTrace.jumpTo": "Перайсці",
"StackTrace.linkText": "Адкрыць логі",
"StackTrace.loadLabel": "Загрузіць яшчэ",
Expand Down
7 changes: 6 additions & 1 deletion app/localization/translated/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,8 @@
"EditWidgetModal.editWidgetSuccess": "¡Widget actualizado!",
"EditWidgetModal.headerText": "Editar widget",
"EmailFormFields.authLabel": "Autorización",
"EmailFormFields.fromLabel": "Nombre del remitente predeterminado",
"EmailFormFields.fromEmailLabel": "From Email",
"EmailFormFields.fromNameLabel": "From name",
"EmailFormFields.hostLabel": "Host",
"EmailFormFields.passwordLabel": "Contraseña",
"EmailFormFields.portFieldHint": "Solo se permiten números del '1' al '65535'",
Expand Down Expand Up @@ -1839,6 +1840,10 @@
"SortingControl.sortByFailedItems": "Elementos fallidos",
"SortingControl.sortByPassingRate": "Porcentaje de aprobados",
"SortingControl.sortByTotal": "Cantidad total",
"SsoUsersForm.formHeader": "Instance Invitations",
"SsoUsersForm.manualInvitesDescription": "Users can manually send invitations for other users. If enabled new users can be created via SSO only.",
"SsoUsersForm.ssoOnlyDescription": "New users can be created via SSO only.",
"SsoUsersForm.switcherLabel": "SSO users only",
"StackTrace.jumpTo": "Ir a",
"StackTrace.linkText": "Abrir registros",
"StackTrace.loadLabel": "Cargar más",
Expand Down
7 changes: 6 additions & 1 deletion app/localization/translated/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,8 @@
"EditWidgetModal.editWidgetSuccess": "Виджет обновлен!",
"EditWidgetModal.headerText": "Редактировать виджет",
"EmailFormFields.authLabel": "Авторизация",
"EmailFormFields.fromLabel": "Имя отправителя по умолчанию",
"EmailFormFields.fromEmailLabel": "From Email",
"EmailFormFields.fromNameLabel": "From name",
"EmailFormFields.hostLabel": "Хост",
"EmailFormFields.passwordLabel": "Пароль",
"EmailFormFields.portFieldHint": "Возможны только цифры от '1' до '65535'",
Expand Down Expand Up @@ -1839,6 +1840,10 @@
"SortingControl.sortByFailedItems": "Неудачные пункты",
"SortingControl.sortByPassingRate": "Проходной балл",
"SortingControl.sortByTotal": "Общее количество",
"SsoUsersForm.formHeader": "Instance Invitations",
"SsoUsersForm.manualInvitesDescription": "Пользователи могут вручную отправлять приглашения другим пользователям. Если включено, новых пользователей можно создавать только через SSO.",
"SsoUsersForm.ssoOnlyDescription": "Новых пользователей можно создавать только через SSO.",
"SsoUsersForm.switcherLabel": "Только SSO пользователи",
"StackTrace.jumpTo": "Перейти",
"StackTrace.linkText": "Открыть логи",
"StackTrace.loadLabel": "Загрузить еще",
Expand Down
7 changes: 6 additions & 1 deletion app/localization/translated/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,8 @@
"EditWidgetModal.editWidgetSuccess": "Оновлений Віджет!",
"EditWidgetModal.headerText": "Віджет Редагувати",
"EmailFormFields.authLabel": "Авторизація",
"EmailFormFields.fromLabel": "Ім’я відправника за замовчуванням",
"EmailFormFields.fromEmailLabel": "From Email",
"EmailFormFields.fromNameLabel": "From name",
"EmailFormFields.hostLabel": "Хост",
"EmailFormFields.passwordLabel": "Пароль",
"EmailFormFields.portFieldHint": "Можливі тільки цифри від '1' до '65535'",
Expand Down Expand Up @@ -1839,6 +1840,10 @@
"SortingControl.sortByFailedItems": "Невдалі пункти",
"SortingControl.sortByPassingRate": "Прохідний бал",
"SortingControl.sortByTotal": "Загальна кількість",
"SsoUsersForm.formHeader": "Instance Invitations",
"SsoUsersForm.manualInvitesDescription": "Користувачі можуть самостійно надсилати запрошення іншим користувачам. Якщо ввімкнено, нові користувачі створюються виключно через SSO.",
"SsoUsersForm.ssoOnlyDescription": "Користувачі створюються виключно через SSO.",
"SsoUsersForm.switcherLabel": "SSO users only",
"StackTrace.jumpTo": "Перейти",
"StackTrace.linkText": "Логи Відкрити",
"StackTrace.loadLabel": "Завантажити",
Expand Down
7 changes: 6 additions & 1 deletion app/localization/translated/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,8 @@
"EditWidgetModal.editWidgetSuccess": "小部件已更新",
"EditWidgetModal.headerText": "编辑小部件",
"EmailFormFields.authLabel": "授权",
"EmailFormFields.fromLabel": "默认发件人姓名",
"EmailFormFields.fromEmailLabel": "From Email",
"EmailFormFields.fromNameLabel": "From name",
"EmailFormFields.hostLabel": "服务器(Host)",
"EmailFormFields.passwordLabel": "密码",
"EmailFormFields.portFieldHint": "只允许输入从“1”到“65535”的数字",
Expand Down Expand Up @@ -1839,6 +1840,10 @@
"SortingControl.sortByFailedItems": "失败的测试项",
"SortingControl.sortByPassingRate": "通过率",
"SortingControl.sortByTotal": "全部",
"SsoUsersForm.formHeader": "Instance Invitations",
"SsoUsersForm.manualInvitesDescription": "Users can manually send invitations for other users. If enabled new users can be created via SSO only.",
"SsoUsersForm.ssoOnlyDescription": "New users can be created via SSO only.",
"SsoUsersForm.switcherLabel": "SSO users only",
"StackTrace.jumpTo": "跳转至",
"StackTrace.linkText": "在日志视图中打开",
"StackTrace.loadLabel": "加载更多",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ const messages = defineMessages({
id: 'SsoUsersForm.formHeader',
defaultMessage: 'Instance Invitations',
},
ssoOnlyDescription: {
id: 'SsoUsersForm.ssoOnlyDescription',
defaultMessage: 'New users can be created via SSO only.',
},
manualInvitesDescription: {
id: 'SsoUsersForm.manualInvitesDescription',
defaultMessage:
'Users can manually send invitations for other users. If enabled new users can be created via SSO only.',
},
});

const SsoUsersFormComponent = ({ enabled: enabledFromStore, fetchAppInfo }) => {
Expand All @@ -55,8 +64,8 @@ const SsoUsersFormComponent = ({ enabled: enabledFromStore, fetchAppInfo }) => {

const getDescription = () => {
return enabled
? 'New users can be created via SSO only.'
: 'Users can manually send invitations for other users. If enabled new users can be created via SSO only.';
? formatMessage(messages.ssoOnlyDescription)
: formatMessage(messages.manualInvitesDescription);
AmsterGet marked this conversation as resolved.
Show resolved Hide resolved
};

const handleToggle = (value) => {
Expand Down
Loading