mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Fixed shoppinglistitemtostock flow purchase dialog close handling (fixes #2739)
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
### Shopping list
|
||||
|
||||
- An amount of `0` is now allowed for shopping list items (just a convenience optimization, it was already possible to leave the amount field empty which implicitly resulted in an amount of `0`)
|
||||
- Fixed that the "Add all list items to stock" workflow closed the dialog after every item instead only after the last one was added
|
||||
|
||||
### Recipes
|
||||
|
||||
|
@@ -178,7 +178,11 @@ $('#save-purchase-button').on('click', function(e)
|
||||
window.parent.postMessage(WindowMessageBag("AfterItemAdded", GetUriParam("listitemid")), Grocy.BaseUrl);
|
||||
window.parent.postMessage(WindowMessageBag("ShowSuccessMessage", successMessage), Grocy.BaseUrl);
|
||||
window.parent.postMessage(WindowMessageBag("Ready"), Grocy.BaseUrl);
|
||||
window.parent.postMessage(WindowMessageBag("CloseLastModal"), Grocy.BaseUrl);
|
||||
|
||||
if (GetUriParam("flow") != "shoppinglistitemtostock")
|
||||
{
|
||||
window.parent.postMessage(WindowMessageBag("CloseLastModal"), Grocy.BaseUrl);
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user