{screenshot}
diff --git a/app/src/components/Channels.js b/app/src/components/Channels.js
index 4827b96c..9ec0ac4c 100644
--- a/app/src/components/Channels.js
+++ b/app/src/components/Channels.js
@@ -16,6 +16,7 @@ import {
import {createChannel, deleteChannel, downloadChannel, refreshChannel, updateChannel, validateRegex} from "../api";
import Container from "semantic-ui-react/dist/commonjs/elements/Container";
import {
+ BackButton,
DirectoryInput,
frequencyOptions,
humanFileSize,
@@ -146,10 +147,12 @@ function ChannelPage({create, header}) {
download_frequency: channel.download_frequency,
match_regex: channel.match_regex,
};
+
+ setDisabled(true);
+ setLoading(true);
+
let response = null;
try {
- setLoading(true);
-
if (create !== undefined) {
response = await createChannel(body);
} else {
@@ -163,7 +166,9 @@ function ChannelPage({create, header}) {
description: 'Could not save channel',
time: 5000,
});
+ return;
} finally {
+ setDisabled(false);
setLoading(false);
}
@@ -244,185 +249,184 @@ function ChannelPage({create, header}) {
setDeleteOpen(true);
}
- const handleCancel = (e) => {
- e.preventDefault();
- navigate(-1);
- }
-
return
-
-
-
-
-
- {channel.statistics && }
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Advanced Settings
+
+
+
+
+ The following settings are encouraged by default, modify them at your own risk.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {!create &&
+ <>
+
+ setDeleteOpen(false)}
+ onConfirm={handleDeleteConfirm}
+ />
+
+
+ >
+ }
+
+
+
+
+
+
+
+
+
+
+ {channel.statistics && }
+
}
@@ -494,28 +498,27 @@ export function Channels() {
setSearchStr(value);
}
- let header =
-
-
-
-
-
-
-
-
-
-
-
-
-
- ;
- ;
+ let header =
+
+
+
+
+
+
+
+
+
+
+
+
+
+
;
let tableHeader =
diff --git a/app/src/components/Common.js b/app/src/components/Common.js
index 7e63fb06..ca2c23a2 100644
--- a/app/src/components/Common.js
+++ b/app/src/components/Common.js
@@ -1,6 +1,6 @@
import React, {useContext, useEffect, useState} from "react";
import {Card, Container, IconGroup, Image, Input, Modal, Pagination, Responsive} from 'semantic-ui-react';
-import {Link, NavLink} from "react-router-dom";
+import {Link, NavLink, useNavigate} from "react-router-dom";
import Message from "semantic-ui-react/dist/commonjs/collections/Message";
import {useDirectories, useDownloaders, useHotspot, useSettings, useThrottle} from "../hooks/customHooks";
import {StatusContext, ThemeContext} from "../contexts/contexts";
@@ -344,7 +344,7 @@ export function SearchInput({
}
return