Moves all the external login services into a set of classes that share as much code as possible. These services are then registered on both the client and server, allowing us in the followup change to dynamically register new handlers
18 lines
No EOL
466 B
JavaScript
18 lines
No EOL
466 B
JavaScript
/**
|
|
* An element which displays either an icon or an image, depending on the value.
|
|
*/
|
|
angular.module('quay').directive('iconImageView', function () {
|
|
var directiveDefinitionObject = {
|
|
priority: 0,
|
|
templateUrl: '/static/directives/icon-image-view.html',
|
|
replace: false,
|
|
transclude: true,
|
|
restrict: 'C',
|
|
scope: {
|
|
'value': '@value'
|
|
},
|
|
controller: function($scope, $element) {
|
|
}
|
|
};
|
|
return directiveDefinitionObject;
|
|
}); |