Просмотр исходного кода

changes for the no new value in option in attribute ddl

VISHAL BHANUSHALI 3 месяцев назад
Родитель
Сommit
7bd36629ec

+ 7 - 7
content_quality_tool_public/static/js/attr-extraction.js

@@ -1653,13 +1653,13 @@ function renderMandatoryComparisonTable(attributes, title, productType) {
                 select.appendChild(option);
             });
 
-            if (!attr.isMatch && attr.aiValue !== 'N/A') {
-                const newOpt = document.createElement('option');
-                newOpt.value = attr.aiValue;
-                newOpt.textContent = attr.aiValue; // + " (new)";
-                newOpt.selected = true;
-                select.appendChild(newOpt);
-            }
+            // if (!attr.isMatch && attr.aiValue !== 'N/A') {
+            //     const newOpt = document.createElement('option');
+            //     newOpt.value = attr.aiValue;
+            //     newOpt.textContent = attr.aiValue; // + " (new)";
+            //     newOpt.selected = true;
+            //     select.appendChild(newOpt);
+            // }
 
             aiTd.appendChild(select);
             row.appendChild(aiTd);

+ 1 - 1
content_quality_tool_public/templates/attr-extraction.html

@@ -241,7 +241,7 @@
             <div id="successToast" class="toast align-items-center text-bg-success border-0" role="alert" aria-live="assertive" aria-atomic="true">
             <div class="d-flex">
                 <div class="toast-body">
-                Attribute extracted successfully.
+                Attribute saved successfully.
                 </div>
                 <button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
             </div>