- Add an AngularPollChannel class for easier handling of HTTP polling.

- Convert the build view page over to use the new class
- Add code so that if the builds logs returned by the API start in the set we already have, we only add the new ones
This commit is contained in:
Joseph Schorr 2014-09-11 19:59:44 -04:00
parent 8b3a3178b0
commit 8a94e38028
3 changed files with 110 additions and 57 deletions

View file

@ -94,7 +94,7 @@
</div>
</div>
<div style="margin-top: 10px">
<span class="quay-spinner" ng-show="polling"></span>
<span class="quay-spinner" ng-show="pollChannel.working"></span>
<button class="btn" ng-show="(build.phase == 'error' || build.phase == 'complete') && build.resource_key"
ng-class="build.phase == 'error' ? 'btn-success' : 'btn-default'"
ng-click="askRestartBuild(build)">