mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-12-21 20:20:23 +00:00
feat: add to channel group modal on channel page
This commit is contained in:
@@ -143,18 +143,8 @@ export default {
|
||||
this.channelGroups.push(this.selectedGroup);
|
||||
|
||||
if (!window.db) return;
|
||||
const cursor = this.getChannelGroupsCursor();
|
||||
cursor.onsuccess = e => {
|
||||
const cursor = e.target.result;
|
||||
if (cursor) {
|
||||
const group = cursor.value;
|
||||
this.channelGroups.push({
|
||||
groupName: group.groupName,
|
||||
channels: JSON.parse(group.channels),
|
||||
});
|
||||
cursor.continue();
|
||||
}
|
||||
};
|
||||
|
||||
this.loadChannelGroups();
|
||||
},
|
||||
activated() {
|
||||
document.title = "Subscriptions - Piped";
|
||||
@@ -173,6 +163,10 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
async loadChannelGroups() {
|
||||
const groups = await this.getChannelGroups();
|
||||
this.channelGroups.push(...groups);
|
||||
},
|
||||
handleButton(subscription) {
|
||||
const channelId = subscription.url.split("/")[2];
|
||||
if (this.authenticated) {
|
||||
|
||||
Reference in New Issue
Block a user