1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 16:29:44 +02:00
portainer/app/directives/buttonSpinner.js
2017-11-12 20:27:28 +01:00

14 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>&nbsp;</span>'
};
return directive;
});