Show build logs timestamps by default

Show timestanps in build logs when quay.showBuildLogTimestamps is not set
This commit is contained in:
Kenny Lee Sin Cheong 2017-05-16 23:59:14 -04:00
parent 702cdf59ff
commit afc13140c4

View file

@ -15,7 +15,11 @@
$scope.name = $routeParams.name;
$scope.build_uuid = $routeParams.buildid;
$scope.showLogTimestamps = CookieService.get('quay.showBuildLogTimestamps') == 'true';
if (!CookieService.get('quay.showBuildLogTimestamps')) {
$scope.showLogTimestamps = true;
} else {
$scope.showLogTimestamps = CookieService.get('quay.showBuildLogTimestamps') == 'true';
}
var loadBuild = function() {
var params = {