Ver Fonte

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

Lee Morgan há 5 anos atrás
pai
commit
f671f73e1b
1 ficheiros alterados com 3 adições e 0 exclusões
  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(){