mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Optimized server error display handling when consuming a recipe (closes #2310)
This commit is contained in:
@@ -906,9 +906,8 @@ $(document).on('click', '.recipe-consume-button', function(e)
|
||||
},
|
||||
function(xhr)
|
||||
{
|
||||
toastr.warning(__t('Not all ingredients of recipe "%s" are in stock, nothing removed', objectName));
|
||||
Grocy.FrontendHelpers.EndUiBusy();
|
||||
console.error(xhr);
|
||||
Grocy.FrontendHelpers.ShowGenericError("A server error occured while processing your request", xhr.response);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user