28/04/23 - 21h
parent
1160ce544f
commit
ff25c110c7
|
@ -220,12 +220,13 @@ function HebergementLms(props) {
|
|||
setimg_logo_file2(event.target.files[0]);
|
||||
|
||||
} else {
|
||||
|
||||
sethandleSubmission_logo_message(" La taille de l'image est incorrecte.");
|
||||
sethandleSubmission_logo_message(" La taille de l'image est incorrecte. Larg = "+String(img_width)+" px Long = "+String(img_height)+" px");
|
||||
sethandleSubmission_logo_api("false");
|
||||
setLoading(false);
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(" after img_width = ", img_width, " after img_height = ", img_height)
|
||||
};
|
||||
img.src = objectUrl;
|
||||
|
||||
|
@ -340,7 +341,7 @@ function HebergementLms(props) {
|
|||
|
||||
|
||||
} else {
|
||||
sethandleSubmission_bg_message(" La taille de l'image est incorrecte");
|
||||
sethandleSubmission_bg_message(" La taille de l'image est incorrecte. Larg = "+String(img_width)+" px Long = "+String(img_height)+" px");
|
||||
sethandleSubmission_bg_api("false");
|
||||
setLoading(false);
|
||||
return;
|
||||
|
@ -539,9 +540,11 @@ function HebergementLms(props) {
|
|||
</nav>}
|
||||
|
||||
{String(Send_logo_Img_api) === "true" && <div className="okUpdateData"> La mise à jour a été correctement faite</div>}
|
||||
|
||||
{String(Send_logo_Img_api) === "false" && <div className="koUpdateData"> {Send_logo_Img_message}</div>}
|
||||
|
||||
{String(handleSubmission_logo_api) === "false" && <div className="koUpdateData"> {handleSubmission_logo_message}</div>}
|
||||
|
||||
|
||||
|
||||
<br />
|
||||
|
||||
|
@ -596,16 +599,16 @@ function HebergementLms(props) {
|
|||
/>
|
||||
|
||||
{img_bg_file && <nav> Fichier à importer : {img_bg_file.name} <br />
|
||||
<img src={img_bg_file} alt={""} />
|
||||
<img src={img_bg_file} alt={""} className="img_bg_file_css" />
|
||||
|
||||
<br />
|
||||
</nav>}
|
||||
|
||||
|
||||
{String(SendBackground_Img_api) === "true" && <div className="okUpdateData"> La mise à jour a été correctement faite</div>}
|
||||
|
||||
{String(SendBackground_Img_api) === "false" && <div className="koUpdateData"> {SendBackground_Img_message}</div>}
|
||||
|
||||
{String(handleSubmission_bg_api) === "false" && <div className="koUpdateData"> {handleSubmission_bg_message}</div>}
|
||||
|
||||
<br />
|
||||
|
||||
|
|
|
@ -714,10 +714,14 @@
|
|||
border-radius: 10px;
|
||||
border: 1px solid;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.img_bg_file_css{
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
// End media
|
||||
|
||||
}
|
Loading…
Reference in New Issue