mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-04 10:30:50 +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);
|
let [birthdate, sex] = parseBirthdateSexFromPersonalId(data.whoami.personalIdNumber);
|
||||||
$form.candidate.birthdate = birthdate;
|
$form.candidate.birthdate = birthdate;
|
||||||
$form.candidate.sex = sex;
|
$form.candidate.sex = sex;
|
||||||
pushSuccessText(
|
if (pageIndex === 4) {
|
||||||
`Datum narození a pohlaví bylo vyplněno automaticky podle Vašeho rodného čísla (${data.whoami.personalIdNumber}).`
|
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) {
|
if (details !== undefined) {
|
||||||
details.candidate.birthdate = details.candidate.birthdate.split('-').reverse().join('.');
|
details.candidate.birthdate = details.candidate.birthdate.split('-').reverse().join('.');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue