[UI Work] Add Artist, Import Artist, Calendar

This commit is contained in:
Qstick 2017-09-07 23:09:52 -04:00
parent a747c5f135
commit 77f1d2e64c
109 changed files with 891 additions and 1082 deletions

View file

@ -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';
}