Feature/channel view content (#150)
* ChannelView feeds * Fixes for web app * Add request id to error message
This commit is contained in:
1 parent
e2df0b524a
commit
dab6dc5bc4
20 files changed
+414
-133
No files matched your search
@@ -9,6 +9,8 @@ import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
||||
import "pkg:/components/PlaylistView/PlaylistUtils.bs"
|
||||
import "pkg:/components/ChannelView/ChannelUtils.bs"
|
||||
|
||||
' TODO:P1 add the option to remove a row if it does not have any content
|
||||
' E.g. NBC News does not return any related chnanels
|
||||
function Init()
|
||||
m.pendingLoadTasks = {}
|
||||
end function
|
||||
@@ -152,7 +154,7 @@ function GetRowsToLoad() as object
|
||||
end if
|
||||
|
||||
subContentNodes = []
|
||||
range = m.top.numRows + 2
|
||||
range = m.top.numRows + 1
|
||||
for i = -range to range
|
||||
index = focus + i
|
||||
if index < 0
|
||||
@@ -172,6 +174,8 @@ function GetRowsToLoad() as object
|
||||
end function
|
||||
|
||||
function LoadRowContent(contentNode as object)
|
||||
LogInfo("Loading row content:", contentNode.title)
|
||||
|
||||
contentNode.loadState = FeedLoadState.Loading
|
||||
task = StartAsyncTask(VideoRowListRowContentTask, {
|
||||
node: m.top,
|
||||
|
||||
Reference in new issue
Block a user