Remove delete-channel from webapp

This commit is contained in:
2025-12-04 09:16:47 +01:00
parent 3c45191d11
commit 6d180aea38
2 changed files with 0 additions and 33 deletions

View File

@@ -62,8 +62,6 @@ export class ChannelDetailComponent implements OnInit {
subscriptions = signal<Subscription[]>([]);
loading = signal(true);
loadingSubscriptions = signal(false);
deleting = signal(false);
// Edit modal
showEditModal = signal(false);
editDisplayName = '';
@@ -173,24 +171,6 @@ export class ChannelDetailComponent implements OnInit {
});
}
// Delete channel
deleteChannel(): void {
const channel = this.channel();
const userId = this.authService.getUserId();
if (!channel || !userId) return;
this.deleting.set(true);
this.apiService.deleteChannel(userId, channel.channel_id).subscribe({
next: () => {
this.notification.success('Channel deleted');
this.router.navigate(['/channels']);
},
error: () => {
this.deleting.set(false);
}
});
}
// Regenerate keys
regenerateSubscribeKey(): void {
const channel = this.channel();