diff --git a/client/src/common/classes.js b/client/src/common/classes.js
index 0fbd97965..e3fd2ed82 100644
--- a/client/src/common/classes.js
+++ b/client/src/common/classes.js
@@ -9,12 +9,16 @@ const CLASSES = {
PAGE_FORM_HEADER: 'page-form__header',
PAGE_FORM_HEADER_PRIMARY: 'page-form__primary-section',
PAGE_FORM_FOOTER: 'page-form__footer',
- PAGE_FORM_FLOATING_ACTIONS: 'page-form__floating-action',
+ PAGE_FORM_FLOATING_ACTIONS: 'page-form__floating-actions',
PAGE_FORM_BILL: 'page-form--bill',
PAGE_FORM_ESTIMATE: 'page-form--estimate',
PAGE_FORM_INVOICE: 'page-form--invoice',
PAGE_FORM_RECEIPT: 'page-form--receipt',
+ PAGE_FORM_PAYMENT_MADE: 'page-form--payment-made',
+
+ CLOUD_SPINNER: 'cloud-spinner',
+ IS_LOADING: 'is-loading',
...Classes,
};
diff --git a/client/src/components/CloudLoadingIndicator.js b/client/src/components/CloudLoadingIndicator.js
new file mode 100644
index 000000000..108f38e3e
--- /dev/null
+++ b/client/src/components/CloudLoadingIndicator.js
@@ -0,0 +1,23 @@
+import React from 'react';
+import classNames from 'classnames';
+import { Spinner } from '@blueprintjs/core';
+import { CLASSES } from 'common/classes';
+import If from './Utils/If';
+
+export default function CloudLoadingIndicator({
+ isLoading,
+ children,
+}) {
+
+ return (
+
+
+
+
+ { children }
+
+ );
+}
\ No newline at end of file
diff --git a/client/src/components/index.js b/client/src/components/index.js
index db8721f04..eec72812c 100644
--- a/client/src/components/index.js
+++ b/client/src/components/index.js
@@ -28,6 +28,7 @@ import InputPrependButton from './Forms/InputPrependButton';
import CategoriesSelectList from './CategoriesSelectList';
import Row from './Grid/Row';
import Col from './Grid/Col';
+import CloudLoadingIndicator from './CloudLoadingIndicator';
const Hint = FieldHint;
@@ -63,4 +64,5 @@ export {
CategoriesSelectList,
Col,
Row,
+ CloudLoadingIndicator,
};
diff --git a/client/src/containers/Purchases/PaymentMades/PaymentMadeFloatingActions.js b/client/src/containers/Purchases/PaymentMades/PaymentMadeFloatingActions.js
index cb750a9e8..8befdee8e 100644
--- a/client/src/containers/Purchases/PaymentMades/PaymentMadeFloatingActions.js
+++ b/client/src/containers/Purchases/PaymentMades/PaymentMadeFloatingActions.js
@@ -1,7 +1,13 @@
import React from 'react';
import { Intent, Button } from '@blueprintjs/core';
import { FormattedMessage as T } from 'react-intl';
+import classNames from 'classnames';
+import { CLASSES } from 'common/classes';
+
+/**
+ * Payment made floating actions bar.
+ */
export default function PaymentMadeFloatingActions({
isSubmitting,
onSubmitClick,
@@ -21,7 +27,7 @@ export default function PaymentMadeFloatingActions({
};
return (
-
+