UBER-158: new popup dialog (#3409)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-06-08 20:58:48 +05:00 committed by GitHub
parent 2a62b880ea
commit d553a261d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 20 additions and 11 deletions

View File

@ -22,6 +22,7 @@
export let labelProps: IntlString
export let message: IntlString
export let params: Record<string, any> = {}
export let okLabel: IntlString | undefined = undefined
export let canSubmit = true
export let action: (() => Promise<void>) | undefined = undefined
@ -40,7 +41,7 @@
<Button
focus
focusIndex={1}
label={presentation.string.Ok}
label={okLabel ?? presentation.string.Ok}
size={'large'}
kind={'primary'}
loading={processing}

View File

@ -106,8 +106,9 @@
"SearchVacancy": "Search vacancy...",
"Organizations": "Companies",
"TemplateReplace": "You you replace selected template?",
"TemplateReplaceConfirm": "All field changes will be override by template values",
"TemplateReplace": "Do you want to apply the new template?",
"TemplateReplaceConfirm": "All fields will be overwritten by the new template values",
"Apply": "Apply",
"OpenVacancyList": "Open list",
"Export": "Export",

View File

@ -107,8 +107,9 @@
"MoveApplication": "Поменять Вакансию",
"SearchVacancy": "Найти вакансию...",
"Organizations": "Компании",
"TemplateReplace": "Вы хотите заменить выбранный шаблон?",
"TemplateReplaceConfirm": "Все внесенные изменения в будут заменены значениями из шаблоном",
"TemplateReplace": "Вы хотите применить выбранный шаблон?",
"TemplateReplaceConfirm": "Все внесенные изменения в будут заменены значениями из нового шаблона",
"Apply": "Применить",
"OpenVacancyList": "Открыть список",
"Export": "Экспорт",
"ConfigLabel": "Рекрутинг",

View File

@ -219,7 +219,8 @@
MessageBox,
{
label: recruit.string.TemplateReplace,
message: recruit.string.TemplateReplaceConfirm
message: recruit.string.TemplateReplaceConfirm,
okLabel: recruit.string.Apply
},
'top',
(result?: boolean) => {

View File

@ -128,6 +128,7 @@ export default mergeIds(recruitId, recruit, {
TemplateReplace: '' as IntlString,
TemplateReplaceConfirm: '' as IntlString,
Apply: '' as IntlString,
OpenVacancyList: '' as IntlString,
Export: '' as IntlString
},

View File

@ -262,8 +262,9 @@
"NewProcess": "New Template",
"SaveProcess": "Save Template",
"NoIssueTemplate": "No Template",
"TemplateReplace": "You you replace selected template?",
"TemplateReplaceConfirm": "All field changes will be override by template values",
"TemplateReplace": "Do you want to apply the new template?",
"TemplateReplaceConfirm": "All fields will be overwritten by the new template values",
"Apply": "Apply",
"CurrentWorkDay": "Current Working Day",
"PreviousWorkDay": "Previous Working Day",

View File

@ -262,8 +262,9 @@
"NewProcess": "Новый шаблон",
"SaveProcess": "Сохранить шаблон",
"NoIssueTemplate": "Шаблон не задан",
"TemplateReplace": "Вы хотите заменить выбранный шаблон?",
"TemplateReplaceConfirm": "Все внесенные изменения в будут заменены значениями из шаблоном",
"TemplateReplace": "Вы хотите применить выбранный шаблон?",
"TemplateReplaceConfirm": "Все внесенные изменения в будут заменены значениями из нового шаблона",
"Apply": "Применить",
"CurrentWorkDay": "Текущий Рабочий День",
"PreviousWorkDay": "Предыдущий Рабочий День",

View File

@ -475,7 +475,8 @@
MessageBox,
{
label: tracker.string.TemplateReplace,
message: tracker.string.TemplateReplaceConfirm
message: tracker.string.TemplateReplaceConfirm,
okLabel: tracker.string.Apply
},
'top',
(result?: boolean) => {

View File

@ -293,6 +293,7 @@ export default mergeIds(trackerId, tracker, {
NoIssueTemplate: '' as IntlString,
TemplateReplace: '' as IntlString,
TemplateReplaceConfirm: '' as IntlString,
Apply: '' as IntlString,
CurrentWorkDay: '' as IntlString,
PreviousWorkDay: '' as IntlString,