This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/js/directives/ui/build-message.js

22 lines
596 B
JavaScript
Raw Normal View History

/**
* An element which displays a user-friendly message for the current phase of a build.
*/
angular.module('quay').directive('buildMessage', function () {
var directiveDefinitionObject = {
priority: 0,
templateUrl: '/static/directives/build-message.html',
replace: false,
transclude: false,
restrict: 'C',
scope: {
'phase': '=phase'
},
controller: function($scope, $element, BuildService) {
$scope.getBuildMessage = function (phase) {
return BuildService.getBuildMessage(phase);
};
}
};
return directiveDefinitionObject;
});