Alert response if download/ignore/pending action fails.

This commit is contained in:
voussoir 2020-10-29 16:14:58 -07:00
parent afe82b9c98
commit e09153c5e3

View file

@ -519,6 +519,11 @@ function give_action_buttons(video_card_div)
function receive_action_response(response) function receive_action_response(response)
{ {
if (response.meta.status !== 200)
{
alert(JSON.stringify(response));
return;
}
const video_ids = response.data.video_ids; const video_ids = response.data.video_ids;
const state = response.data.state; const state = response.data.state;
const state_class = "video_card_" + state; const state_class = "video_card_" + state;