Enhance busy notification (#2774)

* on marker updating, show message and retry until round got completed

* same for contrast enhancement

---------

Co-authored-by: CaCO3 <caco@ruinelli.ch>
This commit is contained in:
CaCO3
2023-12-31 11:47:28 +01:00
committed by GitHub
parent 09fa94c95f
commit a11e19fb0c
2 changed files with 100 additions and 18 deletions

View File

@@ -259,17 +259,13 @@ function MakeContrastImageZW(zw, _enhance, _domainname){
xhttp.open("GET", url, false);
xhttp.send();
}
catch (error)
{
// firework.launch('Deleting Config.ini failed!', 'danger', 30000);
}
catch (error){}
if (xhttp.responseText == "CutImage Done") {
firework.launch('Image Contrast got enhanced', 'success', 5000);
return true;
}
else {
firework.launch("Device is busy, please try again when the Digitalization Round got completed!", 'warning', 10000);
return false;
}
}
@@ -284,10 +280,7 @@ function MakeRefZW(zw, _domainname){
xhttp.open("GET", url, false);
xhttp.send();
}
catch (error)
{
// firework.launch('Deleting Config.ini failed!', 'danger', 30000);
}
catch (error){}
if (xhttp.responseText == "CutImage Done") {
_filetarget2 = zw["name"].replace("/config/", "/img_tmp/");
@@ -297,7 +290,6 @@ function MakeRefZW(zw, _domainname){
return true;
}
else {
firework.launch("Device is busy, please try again when the Digitalization Round got completed!", 'warning', 10000);
return false;
}
}