mirror of https://github.com/portainer/portainer
13 lines
399 B
JavaScript
13 lines
399 B
JavaScript
angular.module('portainer.app').directive('buttonSpinner', function buttonSpinner() {
|
|
var directive = {
|
|
restrict: 'A',
|
|
scope: {
|
|
spinning: '=buttonSpinner',
|
|
},
|
|
transclude: true,
|
|
template: '<ng-transclude></ng-transclude><span ng-show="spinning"><pr-icon icon="\'loader-2\'" class-name="\'animate-spin-slow ml-0.5\'"></pr-icon> </span>',
|
|
};
|
|
|
|
return directive;
|
|
});
|