Spaces:
Sleeping
Sleeping
Update templates/proposed-GUI.html
Browse files
templates/proposed-GUI.html
CHANGED
|
@@ -2378,10 +2378,12 @@ function getData(form) {
|
|
| 2378 |
// /* data[0]--> img , data[1]-->dataframe (goes to legend lsa ) , data [2] -->pdf dropbox shareable link ,data[3]-> spreadsheetId, data[4],spreadsheeturl */
|
| 2379 |
// SimilarAreaDictionary=data[1];
|
| 2380 |
// listofimages=data[0];
|
|
|
|
| 2381 |
dropboxLink=data[1];
|
| 2382 |
list1= data[2] // list of pdf markups
|
| 2383 |
Repeated_Labels2_8=data[3]
|
| 2384 |
-
Not_Found2_8=data[4]
|
|
|
|
| 2385 |
}
|
| 2386 |
if (formvalues['selectprojs'].startsWith('2.2'))
|
| 2387 |
{
|
|
@@ -2420,7 +2422,7 @@ function getData(form) {
|
|
| 2420 |
ImgSide(data[0],spreadsheetURL,dropboxLink)
|
| 2421 |
if (formvalues['selectprojs'].startsWith('2.8')) {
|
| 2422 |
let messages = [];
|
| 2423 |
-
|
| 2424 |
if (Repeated_Labels2_8.length > 0) {
|
| 2425 |
messages.push('The following label(s) are represented on multiple doors: ' + Repeated_Labels2_8);
|
| 2426 |
}
|
|
@@ -2430,7 +2432,7 @@ function getData(form) {
|
|
| 2430 |
}
|
| 2431 |
|
| 2432 |
if (messages.length > 0) {
|
| 2433 |
-
var TopTextModal = document.getElementById("
|
| 2434 |
TopTextModal.textContent = 'Warning';
|
| 2435 |
|
| 2436 |
PopupElement.textContent = messages.join('\n'); // Show both messages if both conditions are met
|
|
|
|
| 2378 |
// /* data[0]--> img , data[1]-->dataframe (goes to legend lsa ) , data [2] -->pdf dropbox shareable link ,data[3]-> spreadsheetId, data[4],spreadsheeturl */
|
| 2379 |
// SimilarAreaDictionary=data[1];
|
| 2380 |
// listofimages=data[0];
|
| 2381 |
+
console.log('2.8Daata',data)
|
| 2382 |
dropboxLink=data[1];
|
| 2383 |
list1= data[2] // list of pdf markups
|
| 2384 |
Repeated_Labels2_8=data[3]
|
| 2385 |
+
Not_Found2_8=data[4]
|
| 2386 |
+
console.log(Repeated_Labels2_8,Not_Found2_8)
|
| 2387 |
}
|
| 2388 |
if (formvalues['selectprojs'].startsWith('2.2'))
|
| 2389 |
{
|
|
|
|
| 2422 |
ImgSide(data[0],spreadsheetURL,dropboxLink)
|
| 2423 |
if (formvalues['selectprojs'].startsWith('2.8')) {
|
| 2424 |
let messages = [];
|
| 2425 |
+
if (Repeated_Labels2_8)
|
| 2426 |
if (Repeated_Labels2_8.length > 0) {
|
| 2427 |
messages.push('The following label(s) are represented on multiple doors: ' + Repeated_Labels2_8);
|
| 2428 |
}
|
|
|
|
| 2432 |
}
|
| 2433 |
|
| 2434 |
if (messages.length > 0) {
|
| 2435 |
+
var TopTextModal = document.getElementById("TopTextModal");
|
| 2436 |
TopTextModal.textContent = 'Warning';
|
| 2437 |
|
| 2438 |
PopupElement.textContent = messages.join('\n'); // Show both messages if both conditions are met
|