mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Properly show the API error when it failed to undo a stock booking (fixes #267)
This commit is contained in:
@@ -1265,3 +1265,6 @@ msgstr ""
|
|||||||
|
|
||||||
msgid "Marked task %s as completed on %s"
|
msgid "Marked task %s as completed on %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Booking has subsequent dependent bookings, undo not possible"
|
||||||
|
msgstr ""
|
||||||
|
@@ -69,6 +69,7 @@ $(document).on('click', '.undo-stock-booking-button', function(e)
|
|||||||
function(xhr)
|
function(xhr)
|
||||||
{
|
{
|
||||||
console.error(xhr);
|
console.error(xhr);
|
||||||
|
toastr.error(__t(JSON.parse(xhr.response).error_message));
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user