+
@@ -268,14 +258,6 @@ const hasSelected = computed(() => selectedElms.value.length > 0)
const hasItems = computed(() => Object.keys(props.completed)?.length > 0)
const getTotal = computed(() => Object.keys(props.completed)?.length);
-const hasError = (item) => {
- if (item.status === 'finished') {
- return false;
- }
-
- return (item.error || (item.msg && item.msg.length > 0)) ? true : false;
-}
-
const showMessage = (item) => {
if (!item?.msg || item.msg === item?.error) {
return false
@@ -345,6 +327,21 @@ const clearFailed = () => {
emits('deleteItem', 'completed', keys);
}
+const setIcon = (item) => {
+ if (item.status === 'finished') {
+ return 'fa-solid fa-circle-check';
+ }
+
+ if (item.status === 'error') {
+ return 'fa-solid fa-circle-xmark';
+ }
+
+ if (item.status === 'canceled') {
+ return 'fa-solid fa-eject';
+ }
+
+ return 'fa-solid fa-circle';
+}
const requeueFailed = () => {
if (false === confirm('Are you sure you want to re-queue all failed downloads?')) {
diff --git a/frontend/src/components/Page-Downloading.vue b/frontend/src/components/Page-Downloading.vue
index 1f3b0fcc..ea6c1355 100644
--- a/frontend/src/components/Page-Downloading.vue
+++ b/frontend/src/components/Page-Downloading.vue
@@ -93,15 +93,6 @@