Skip to content

Commit 18535e4

Browse files
authored
Don't allow tracker changes while loading (#8507)
2 parents 11fbbd0 + 2852ccd commit 18535e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tribler/ui/src/pages/Downloads/Trackers.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ export default function Trackers({ download }: { download: Download }) {
7676
}
7777
]
7878

79+
if (download.trackers.length === 0)
80+
return <svg className="animate-spin h-3 w-3 text-black dark:text-white ml-4 mt-4" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
81+
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle>
82+
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
83+
</svg>;
84+
7985
return (
8086
<div>
8187
<div className="border-b-4 border-muted">

0 commit comments

Comments
 (0)