refresh productcard on save (#495)

This commit is contained in:
kriddles
2020-01-17 11:13:43 -06:00
committed by Bernd Bestel
parent 5de563f2c9
commit 7c2320e978
4 changed files with 4 additions and 0 deletions

View File

@@ -99,6 +99,7 @@
Grocy.Components.DateTimePicker.Clear();
Grocy.Components.ProductPicker.SetValue('');
Grocy.Components.ProductPicker.GetInputElement().focus();
Grocy.Components.ProductCard.Refresh(jsonForm.product_id);
Grocy.FrontendHelpers.ValidateForm('purchase-form');
}
},