Removing unused /videos/tag. Sending events when Channels are created or deleted.

This commit is contained in:
Roland 2023-07-17 17:32:29 -06:00
parent fdaaa510c4
commit 6458316d1a
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
14 changed files with 90 additions and 35 deletions

View file

@ -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) => {