BIG-214 Min width submit button on edit mode.

This commit is contained in:
elforjani13
2022-01-01 10:27:32 +02:00
parent 40ae1aeb52
commit e9797fd9a0
10 changed files with 13 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ export default function CreditNoteFloatingActions() {
};
// Handle submit as draft button click.
const handleSubmitDraftBtnClick = (event) => {
setSubmitPayload({ redirect: true, open: false });
setSubmitPayload({ redirect: true, open: false });
submitForm();
};
@@ -147,6 +147,7 @@ export default function CreditNoteFloatingActions() {
loading={isSubmitting}
intent={Intent.PRIMARY}
onClick={handleSubmitOpenBtnClick}
style={{ minWidth: '85px' }}
text={<T id={'save'} />}
/>
<Popover

View File

@@ -65,7 +65,6 @@ export default function EstimateFloatingActions() {
const handleCancelBtnClick = (event) => {
history.goBack();
};
const handleClearBtnClick = (event) => {
@@ -149,6 +148,7 @@ export default function EstimateFloatingActions() {
disabled={isSubmitting}
intent={Intent.PRIMARY}
onClick={handleSubmitDeliverBtnClick}
style={{ minWidth: '85px' }}
text={<T id={'save'} />}
/>
<Popover

View File

@@ -151,6 +151,7 @@ export default function InvoiceFloatingActions() {
loading={isSubmitting}
intent={Intent.PRIMARY}
onClick={handleSubmitDeliverBtnClick}
style={{ minWidth: '85px' }}
text={<T id={'save'} />}
/>
<Popover

View File

@@ -69,6 +69,7 @@ export default function PaymentReceiveFormFloatingActions() {
intent={Intent.PRIMARY}
type="submit"
onClick={handleSubmitBtnClick}
style={{ minWidth: '85px' }}
text={!isNewMode ? <T id={'edit'} /> : <T id={'save'} />}
/>
<Popover

View File

@@ -149,6 +149,7 @@ export default function ReceiptFormFloatingActions() {
disabled={isSubmitting}
intent={Intent.PRIMARY}
onClick={handleSubmitCloseBtnClick}
style={{ minWidth: '85px' }}
text={<T id={'save'} />}
/>
<Popover