Files
backroad/app/portainer/components/buttonSpinner.js
Ali d78b762f7b refactor(icons): replace fa icons [EE-4459] (#7907)
refactor(icons): remove fontawesome EE-4459

refactor(icon) replace feather with lucide EE-4472
2022-11-28 15:00:28 +13:00

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