chase-moskal / xiome

open-source cloud-powered web components
https://xiome.io/
MIT License
10 stars 13 forks source link

video-display shows wrong slot #218

Closed chase-moskal closed 1 year ago

chase-moskal commented 1 year ago

the video display shows the unprivileged slot when it should show unavailable which gives users the wrong idea

chase-moskal commented 1 year ago

the problem is that the get-video-views.ts returns undefined both for unprivileged as well as unavailable views.

the solution will be, instead of returning VideoView[], to return some kind of meta object like VideoViewMeta[]

export type VideoViewMeta = {
  status: "unprivileged" | "unavailable" | "available"
  view: VideoView
}
chase-moskal commented 1 year ago

done