feat: channel deletion notification

This commit is contained in:
antebrl
2024-12-16 15:39:36 +00:00
parent d3e496628a
commit c05d94189f
2 changed files with 6 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ class ChannelService {
];
this.channels = [
//Some Test-channels to get started
//Some Test-channels to get started, remove this when using your own playlist
new Channel('Das Erste', process.env.DEFAULT_CHANNEL_URL, "https://upload.wikimedia.org/wikipedia/commons/thumb/5/56/Das_Erste-Logo_klein.svg/768px-Das_Erste-Logo_klein.svg.png", false, [], null),
new Channel('DAZN 1 DE', "https://xyzdddd.mizhls.ru/lb/premium426/index.m3u8", "https://upload.wikimedia.org/wikipedia/commons/4/49/DAZN_1.svg", true, daddyHeaders, null),
new Channel('beIN Sports 1', "https://xyzdddd.mizhls.ru/lb/premium61/index.m3u8","https://www.thesportsdb.com/images/media/channel/logo/BeIn_Sports_1_Australia.png", true, daddyHeaders, null),

View File

@@ -111,6 +111,11 @@ function ChannelModal({ isOpen, onClose, channel }: ChannelModalProps) {
if (channel) {
socketService.deleteChannel(channel.id);
}
addToast({
type: 'error',
title: 'Channel deleted',
duration: 3000,
});
onClose();
};