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
2019-11-12 11:09:47 -05:00

21 lines
596 B
JavaScript

/**
* 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;
});