mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Downloaded overrides other statuses.
This commit is contained in:
@@ -85,7 +85,11 @@ define(
|
|||||||
|
|
||||||
var statusLevel = 'primary';
|
var statusLevel = 'primary';
|
||||||
|
|
||||||
if (currentTime.isAfter(start) && currentTime.isBefore(end)) {
|
if (hasFile) {
|
||||||
|
statusLevel = 'success';
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (currentTime.isAfter(start) && currentTime.isBefore(end)) {
|
||||||
statusLevel = 'warning';
|
statusLevel = 'warning';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -93,10 +97,6 @@ define(
|
|||||||
statusLevel = 'danger';
|
statusLevel = 'danger';
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (hasFile) {
|
|
||||||
statusLevel = 'success';
|
|
||||||
}
|
|
||||||
|
|
||||||
var test = currentTime.startOf('day').format('LLLL');
|
var test = currentTime.startOf('day').format('LLLL');
|
||||||
|
|
||||||
if (end.isBefore(currentTime.startOf('day'))) {
|
if (end.isBefore(currentTime.startOf('day'))) {
|
||||||
|
@@ -24,6 +24,10 @@ define(
|
|||||||
var start = Moment(this.airDateUtc);
|
var start = Moment(this.airDateUtc);
|
||||||
var end = Moment(this.end);
|
var end = Moment(this.end);
|
||||||
|
|
||||||
|
if (hasFile) {
|
||||||
|
return 'success';
|
||||||
|
}
|
||||||
|
|
||||||
if (currentTime.isAfter(start) && currentTime.isBefore(end)) {
|
if (currentTime.isAfter(start) && currentTime.isBefore(end)) {
|
||||||
return 'warning';
|
return 'warning';
|
||||||
}
|
}
|
||||||
@@ -32,10 +36,6 @@ define(
|
|||||||
return 'danger';
|
return 'danger';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasFile) {
|
|
||||||
return 'success';
|
|
||||||
}
|
|
||||||
|
|
||||||
return 'primary';
|
return 'primary';
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user