mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Properly show the API error when it failed to undo a stock booking (fixes #267)
This commit is contained in:
parent
b1adaa24cf
commit
43710b5062
@ -1265,3 +1265,6 @@ msgstr ""
|
||||
|
||||
msgid "Marked task %s as completed on %s"
|
||||
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)
|
||||
{
|
||||
console.error(xhr);
|
||||
toastr.error(__t(JSON.parse(xhr.response).error_message));
|
||||
}
|
||||
);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user