Explorar el Código

Bug fix: adding a recipe was not updating the buttons on the analytics strand.

Lee Morgan hace 5 años
padre
commit
f671f73e1b
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      views/dashboardPage/js/classes/Merchant.js

+ 3 - 0
views/dashboardPage/js/classes/Merchant.js

@@ -214,6 +214,7 @@ class Merchant{
 
         homeStrand.drawInventoryCheckCard();
         ingredientsStrand.populateByProperty();
+        analyticsStrand.populateButtons();
     }
 
     getIngredient(id){
@@ -259,6 +260,7 @@ class Merchant{
         }
 
         recipeBookStrand.populateRecipes();
+        analyticsStrand.populateButtons();
     }
 
     removeRecipe(recipe){
@@ -270,6 +272,7 @@ class Merchant{
         this._recipes.splice(index, 1);
 
         recipeBookStrand.populateRecipes();
+        analyticsStrand.populateButtons();
     }
 
     get transactions(){