removed unnecessary factory classes, simplified existing services

This commit is contained in:
alecmerdler 2017-01-23 01:57:00 -08:00
parent 2a59014f0b
commit 64a4b68216
15 changed files with 69 additions and 158 deletions

View file

@ -13,7 +13,7 @@ angular.module('quay').directive('buildLogsView', function () {
'useTimestamps': '=useTimestamps',
'buildUpdated': '&buildUpdated'
},
controller: function($scope, $element, $interval, $sanitize, ansi2html, ViewArrayFactory,
controller: function($scope, $element, $interval, $sanitize, ansi2html, ViewArray,
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'] = ViewArrayFactory.create();
entry['logs'] = ViewArray.create();
entry['index'] = $scope.logStartIndex + i;
$scope.logEntries.push(entry);