Sfoglia il codice sorgente

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

Lee Morgan 5 anni fa
parent
commit
f671f73e1b
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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(){