wip
This commit is contained in:
9
resources/js/vendor/nova/js/additional.js
vendored
9
resources/js/vendor/nova/js/additional.js
vendored
@@ -36,6 +36,7 @@ async function fetchLoanHistory(containerID, passport_serie, passport_id) {
|
||||
|
||||
if (recipients.length < 1) {
|
||||
Nova.error('Karz taryhy ýok')
|
||||
cardHistoryDetailContainer.innerHTML = `<strong><h3>Karz taryhy ýok</h3></strong>`;
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -97,6 +98,12 @@ async function fetchCardHistory(passport_serie, passport_id, card_number, card_e
|
||||
console.log({result: result})
|
||||
if (result.errCode != 0) {
|
||||
Nova.error(result.message)
|
||||
|
||||
cardHistoryDetailContainer.innerHTML = `
|
||||
<h3><strong>${result.message}</strong></h3>
|
||||
`;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
cardHistoryDetailContainer.innerHTML = `
|
||||
@@ -120,7 +127,7 @@ async function fetchCardHistory(passport_serie, passport_id, card_number, card_e
|
||||
}).replaceAll('/', '.')
|
||||
}</strong></p>
|
||||
</li>`;
|
||||
})}
|
||||
}) '<br />'}
|
||||
</ul>
|
||||
</p>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user