Fix since filter on the builds list

This commit is contained in:
Joseph Schorr 2015-03-18 11:59:22 -04:00
parent 3cd867b3ab
commit e0f11f46e5

View file

@ -64,9 +64,9 @@ angular.module('quay').directive('repoPanelBuilds', function () {
var since = null;
if ($scope.options.filter == '48hours') {
if ($scope.options.filter == '48hour') {
since = Math.floor(moment().subtract(2, 'days').valueOf() / 1000);
} else if ($scope.options.filter == '30days') {
} else if ($scope.options.filter == '30day') {
since = Math.floor(moment().subtract(30, 'days').valueOf() / 1000);
} else {
since = null;