Преглед на файлове

Fix small bug in frontend banners.

Lee Morgan преди 5 години
родител
ревизия
3552a0e5d5
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      views/dashboardPage/bundle.js
  2. 1 0
      views/dashboardPage/js/sidebars/newOrder.js

+ 1 - 0
views/dashboardPage/bundle.js

@@ -2136,6 +2136,7 @@ let newOrder = {
         div.ingredient = ingredient;
         div.children[0].children[1].onclick = ()=>{this.removeIngredient(div, element)};
 
+        //TODO: this should be handled by the class
         //Display units depending on the whether it is a special unit
         if(ingredient.ingredient.specialUnit === "bottle"){
             div.children[0].children[0].innerText = `${ingredient.ingredient.name} (BOTTLES)`;

+ 1 - 0
views/dashboardPage/js/sidebars/newOrder.js

@@ -32,6 +32,7 @@ let newOrder = {
         div.ingredient = ingredient;
         div.children[0].children[1].onclick = ()=>{this.removeIngredient(div, element)};
 
+        //TODO: this should be handled by the class
         //Display units depending on the whether it is a special unit
         if(ingredient.ingredient.specialUnit === "bottle"){
             div.children[0].children[0].innerText = `${ingredient.ingredient.name} (BOTTLES)`;