From 8b148b1ad9df9e75782d06ee46051ee47b126fa1 Mon Sep 17 00:00:00 2001 From: hak8or Date: Fri, 23 Feb 2018 23:14:37 -0500 Subject: [PATCH] Updated javascript for new API changes --- YTManager/Controllers/Channels.cs | 4 ++-- YTManager/wwwroot/admin.js | 16 ++++++---------- YTManager/wwwroot/index.js | 5 ++++- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/YTManager/Controllers/Channels.cs b/YTManager/Controllers/Channels.cs index a20c783..ec94c9c 100644 --- a/YTManager/Controllers/Channels.cs +++ b/YTManager/Controllers/Channels.cs @@ -13,13 +13,13 @@ namespace YTManager.Controllers { struct Channel_ForAPI { public string Title; public string Description; - public string YTID; + public string ID; public List Video_IDs; public Channel_ForAPI(Models.Channel c) { Title = c.Title; Description = c.Description; - YTID = c.YoutubeID; + ID = c.YoutubeID; Video_IDs = c.Videos?.Select(v => v.YoutubeID).ToList(); } } diff --git a/YTManager/wwwroot/admin.js b/YTManager/wwwroot/admin.js index 1554f8e..52411d9 100644 --- a/YTManager/wwwroot/admin.js +++ b/YTManager/wwwroot/admin.js @@ -123,19 +123,17 @@ var tbody0 = new Vue({ - + - - + -
YT Channel IDID Title DescriptionID Actions
{{entry.youtubeID}}{{entry.id}} {{entry.title}} {{entry.description}}{{entry.primaryKey}}