Skip to content

Commit 4041133

Browse files
committed
2.1 - Fixing categories play, share, add to playlist
1 parent be679bf commit 4041133

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export class AppComponent implements OnInit {
285285
let listType;
286286
let playlistItem;
287287
if (list === 0) {
288-
listType = this.feedVideos[i];
288+
listType = this._shared.feedVideos[i];
289289
}
290290
if (list === 1) {
291291
listType = this._shared.lastSearchedVideos[i];

src/app/components/category/category.component.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export class CategoryComponent implements OnInit {
8585
this.feedVideos = res2['items'];
8686
this._shared.feedVideos = res2['items'];
8787

88-
8988
await this._shared.initChannel();
9089
this.getChannelTrending();
9190
}
@@ -139,5 +138,19 @@ export class CategoryComponent implements OnInit {
139138
this.getChannelTrending();
140139
}
141140

141+
onClickVideo(event: Event, i: any, list: number) {
142+
if (list === 3) {
143+
this._app.getVideo(this._shared.feedVideos[i]);
144+
}
145+
}
146+
147+
148+
onCopyVideoItemLink(i: number, list: number) {
149+
this._app.onCopyVideoItemLink(i, list);
150+
}
151+
152+
addPlaylistItem(i: number, list: number) {
153+
this._app.addPlaylistItem(i, list);
154+
}
142155

143156
}

0 commit comments

Comments
 (0)