mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-15 20:41:19 +00:00
fix: push autofill message only on page 4
This commit is contained in:
parent
6780762bf7
commit
af08da55d4
1 changed files with 5 additions and 16 deletions
|
|
@ -420,24 +420,13 @@
|
|||
let [birthdate, sex] = parseBirthdateSexFromPersonalId(data.whoami.personalIdNumber);
|
||||
$form.candidate.birthdate = birthdate;
|
||||
$form.candidate.sex = sex;
|
||||
pushSuccessText(
|
||||
`Datum narození a pohlaví bylo vyplněno automaticky podle Vašeho rodného čísla (${data.whoami.personalIdNumber}).`
|
||||
);
|
||||
if (pageIndex === 4) {
|
||||
pushSuccessText(
|
||||
`Datum narození a pohlaví bylo vyplněno automaticky podle Vašeho rodného čísla (${data.whoami.personalIdNumber}).`
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
/* $: if ($form.candidate.citizenship === 'Česká republika') {
|
||||
if ($form.candidate.birthdate === '' && $form.candidate.sex === '') {
|
||||
let [birthdate, sex] = parseBirthdateSexFromPersonalId(data.whoami.personalIdNumber);
|
||||
$form.candidate.birthdate = birthdate;
|
||||
$form.candidate.sex = sex;
|
||||
pushSuccessText(
|
||||
`Datum narození a pohlaví bylo vyplněno automaticky podle Vašeho rodného čísla (${data.whoami.personalIdNumber}).`
|
||||
);
|
||||
}
|
||||
} else {
|
||||
$form.candidate.birthdate = '';
|
||||
$form.candidate.sex = '';
|
||||
} */
|
||||
|
||||
if (details !== undefined) {
|
||||
details.candidate.birthdate = details.candidate.birthdate.split('-').reverse().join('.');
|
||||
|
|
|
|||
Loading…
Reference in a new issue