mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 09:33:52 -07:00
[UI Work] Add Artist, Import Artist, Calendar
This commit is contained in:
parent
a747c5f135
commit
77f1d2e64c
109 changed files with 891 additions and 1082 deletions
|
@ -1,6 +1,6 @@
|
|||
import moment from 'moment';
|
||||
|
||||
function getStatusStyle(episodeNumber, hasFile, downloading, startTime, endTime, isMonitored) {
|
||||
function getStatusStyle(episodeNumber, hasFile, downloading, startTime, isMonitored) {
|
||||
const currentTime = moment();
|
||||
|
||||
if (hasFile) {
|
||||
|
@ -15,18 +15,10 @@ function getStatusStyle(episodeNumber, hasFile, downloading, startTime, endTime,
|
|||
return 'unmonitored';
|
||||
}
|
||||
|
||||
if (currentTime.isAfter(startTime) && currentTime.isBefore(endTime)) {
|
||||
return 'onAir';
|
||||
}
|
||||
|
||||
if (endTime.isBefore(currentTime) && !hasFile) {
|
||||
if (currentTime.isAfter(startTime)) {
|
||||
return 'missing';
|
||||
}
|
||||
|
||||
if (episodeNumber === 1) {
|
||||
return 'premiere';
|
||||
}
|
||||
|
||||
return 'unaired';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue