Fix image header URL in advert details, update CV access message, enhance image ratio alerts in profile edit, modify registration titles and agreement checkbox behavior.
This commit is contained in:
@@ -405,6 +405,7 @@
|
||||
if (headerInput && headerInput.files && headerInput.files.length) {
|
||||
imageChecks.push(getImageSize(headerInput.files[0]).then(size => {
|
||||
if (!isValidRatio(size)) {
|
||||
showAlert( 'Zdjęcie nad ogłoszeniem ma nieprawidłowe proporcje. Proporcje obrazu muszą mieścić się w przedziale 2.66:1 i 8:1.' );
|
||||
throw new Error('header');
|
||||
}
|
||||
}));
|
||||
@@ -413,6 +414,7 @@
|
||||
if (bottomInput && bottomInput.files && bottomInput.files.length) {
|
||||
imageChecks.push(getImageSize(bottomInput.files[0]).then(size => {
|
||||
if (!isValidRatio(size)) {
|
||||
showAlert( 'Zdjęcie pod ogłoszeniem ma nieprawidłowe proporcje. Proporcje obrazu muszą mieścić się w przedziale 2.66:1 i 8:1.' );
|
||||
throw new Error('bottom');
|
||||
}
|
||||
}));
|
||||
@@ -422,7 +424,7 @@
|
||||
const hasError = results.some(r => r.status === 'rejected');
|
||||
|
||||
if (hasError) {
|
||||
showAlert( 'Wybrany obraz jest nieprawidłowy. Propoce obrazu muszą mieścić się w przedziale 2.66:1 i 8:1.' );
|
||||
// showAlert( 'Wybrany obraz jest nieprawidłowy. Propocje obrazu muszą mieścić się w przedziale 2.66:1 i 8:1.' );
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user