diff --git a/packages/strapi-plugin-settings-manager/admin/src/components/Button/index.js b/packages/strapi-plugin-settings-manager/admin/src/components/Button/index.js index 675dc769b6..4d6da25f1c 100755 --- a/packages/strapi-plugin-settings-manager/admin/src/components/Button/index.js +++ b/packages/strapi-plugin-settings-manager/admin/src/components/Button/index.js @@ -6,6 +6,7 @@ import React from 'react'; import PropTypes from 'prop-types'; +import cn from 'classnames'; import { FormattedMessage } from 'react-intl'; import styles from './styles.scss'; @@ -16,9 +17,23 @@ class Button extends React.Component { const addShape = this.props.addShape ? : ''; const buttonProps = Object.assign({}, this.props); - const propsToDelete = ['addShape', 'buttonBackground', 'buttonSize', 'handlei18n', 'label']; + const propsToDelete = ['addShape', 'buttonBackground', 'buttonSize', 'handlei18n', 'label', 'loader']; propsToDelete.map((value) => delete buttonProps[value]); + + if (this.props.loader) { + return ( + + ) + } return (