move window.__config to an Angular constant; refactor AngularViewArray -> ViewArray + ViewArrayFactory
This commit is contained in:
parent
615e233671
commit
eea2a18c3f
16 changed files with 316 additions and 231 deletions
|
@ -13,7 +13,7 @@ angular.module('quay').directive('buildLogsView', function () {
|
|||
'useTimestamps': '=useTimestamps',
|
||||
'buildUpdated': '&buildUpdated'
|
||||
},
|
||||
controller: function($scope, $element, $interval, $sanitize, ansi2html, AngularViewArray,
|
||||
controller: function($scope, $element, $interval, $sanitize, ansi2html, ViewArrayFactory,
|
||||
AngularPollChannel, ApiService, Restangular, UtilService) {
|
||||
|
||||
var result = $element.find('#copyButton').clipboardCopy();
|
||||
|
@ -53,7 +53,7 @@ angular.module('quay').directive('buildLogsView', function () {
|
|||
var entry = logs[i];
|
||||
var type = entry['type'] || 'entry';
|
||||
if (type == 'command' || type == 'phase' || type == 'error') {
|
||||
entry['logs'] = AngularViewArray.create();
|
||||
entry['logs'] = ViewArrayFactory.create();
|
||||
entry['index'] = $scope.logStartIndex + i;
|
||||
|
||||
$scope.logEntries.push(entry);
|
||||
|
|
Reference in a new issue