Alert response if download/ignore/pending action fails.
This commit is contained in:
		
							parent
							
								
									afe82b9c98
								
							
						
					
					
						commit
						e09153c5e3
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -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; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue