소스 검색

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

Lee Morgan 5 년 전
부모
커밋
f671f73e1b
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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(){