mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-27 23:06:29 -04:00
+10
-1
@@ -1,6 +1,15 @@
|
||||
import { kinds } from 'Helpers/Props';
|
||||
|
||||
function getProgressBarKind(status, monitored, progress) {
|
||||
function getProgressBarKind(
|
||||
status: string,
|
||||
monitored: boolean,
|
||||
progress: number,
|
||||
isDownloading: boolean
|
||||
) {
|
||||
if (isDownloading) {
|
||||
return kinds.PURPLE;
|
||||
}
|
||||
|
||||
if (progress === 100) {
|
||||
return status === 'ended' ? kinds.SUCCESS : kinds.PRIMARY;
|
||||
}
|
||||
Reference in New Issue
Block a user