Fixed issue with new projects

If they haven't done a single poll the UI was filing to find a last
version.
This commit is contained in:
Tim Shannon 2016-04-25 16:51:01 +00:00
parent 4785efdfc2
commit 2066c68257

View File

@ -171,6 +171,8 @@ Ractive.DEBUG = false;
//statuses //statuses
if (project.stage != "waiting") { if (project.stage != "waiting") {
project.status = project.stage; project.status = project.stage;
} else if(!project.lastLog) {
project.status = "waiting";
} else if (project.lastLog.version.trim() == project.releaseVersion.trim()) { } else if (project.lastLog.version.trim() == project.releaseVersion.trim()) {
project.status = "Successfully Released"; project.status = "Successfully Released";
} else { } else {