mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 14:19:56 -05:00
Removing unused /videos/tag. Sending events when Channels are created or deleted.
This commit is contained in:
parent
fdaaa510c4
commit
6458316d1a
14 changed files with 90 additions and 35 deletions
|
|
@ -219,7 +219,19 @@ function ChannelPage({create, header}) {
|
|||
|
||||
const handleDownloadChannel = async (e) => {
|
||||
e.preventDefault();
|
||||
return await downloadChannel(channelId);
|
||||
try {
|
||||
const response = await downloadChannel(channelId);
|
||||
if (response.status === 204) {
|
||||
toast({
|
||||
type: 'success',
|
||||
title: 'Download Created',
|
||||
description: 'Channel download has been started.',
|
||||
time: 5000,
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
const handleRefreshChannel = async (e) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue