From e09153c5e30d5fd16552ed0ed8eeeab89ed2dbbe Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 29 Oct 2020 16:14:58 -0700 Subject: [PATCH] Alert response if download/ignore/pending action fails. --- frontends/ycdl_flask/templates/channel.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontends/ycdl_flask/templates/channel.html b/frontends/ycdl_flask/templates/channel.html index 3508c85..6eb8a9d 100644 --- a/frontends/ycdl_flask/templates/channel.html +++ b/frontends/ycdl_flask/templates/channel.html @@ -519,6 +519,11 @@ function give_action_buttons(video_card_div) function receive_action_response(response) { + if (response.meta.status !== 200) + { + alert(JSON.stringify(response)); + return; + } const video_ids = response.data.video_ids; const state = response.data.state; const state_class = "video_card_" + state;