Explorar o código

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

Lee Morgan %!s(int64=5) %!d(string=hai) anos
pai
achega
f671f73e1b
Modificáronse 1 ficheiros con 3 adicións e 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(){