mirror of https://github.com/portainer/portainer
15 lines
384 B
JavaScript
15 lines
384 B
JavaScript
angular
|
|
.module('portainer')
|
|
.directive('buttonSpinner', function buttonSpinner() {
|
|
var directive = {
|
|
restrict: 'A',
|
|
scope: {
|
|
spinning: '=buttonSpinner'
|
|
},
|
|
transclude: true,
|
|
template: '<ng-transclude></ng-transclude><span ng-show="spinning"><i class="fa fa-circle-o-notch fa-spin" style="margin-left: 2px;"></i> </span>'
|
|
};
|
|
|
|
return directive;
|
|
});
|