mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
Merge branch 'master' of https://github.com/abouolia/Ratteb
This commit is contained in:
@@ -38,9 +38,6 @@ export function ItemsMultiSelect({
|
|||||||
[isItemSelected],
|
[isItemSelected],
|
||||||
);
|
);
|
||||||
|
|
||||||
// Count selected items.
|
|
||||||
const countSelected = localSelected.length;
|
|
||||||
|
|
||||||
// Handle item selected.
|
// Handle item selected.
|
||||||
const handleItemSelect = useCallback(
|
const handleItemSelect = useCallback(
|
||||||
({ id }) => {
|
({ id }) => {
|
||||||
@@ -77,13 +74,16 @@ export function ItemsMultiSelect({
|
|||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Count selected items.
|
||||||
|
const countSelected = itemsSelected().length;
|
||||||
|
|
||||||
// Clear Button
|
// Clear Button
|
||||||
const clearButton =
|
const clearButton =
|
||||||
countSelected > 0 ? (
|
countSelected > 0 ? (
|
||||||
<Button
|
<Button
|
||||||
icon="cross"
|
icon="cross"
|
||||||
minimal={true}
|
minimal={true}
|
||||||
onClick={() => setLocalSelected([])}
|
// onClick={() => setLocalSelected([])}
|
||||||
/>
|
/>
|
||||||
) : undefined;
|
) : undefined;
|
||||||
|
|
||||||
@@ -98,9 +98,12 @@ export function ItemsMultiSelect({
|
|||||||
items={items}
|
items={items}
|
||||||
noResults={<MenuItem disabled={true} text={<T id={'No items'} />} />}
|
noResults={<MenuItem disabled={true} text={<T id={'No items'} />} />}
|
||||||
itemRenderer={itemRenderer}
|
itemRenderer={itemRenderer}
|
||||||
popoverProps={{ minimal: true }}
|
popoverProps={{
|
||||||
|
minimal: true,
|
||||||
|
usePortal: false,
|
||||||
|
targetTagName: 'div ',
|
||||||
|
}}
|
||||||
selectedItems={itemsSelected()}
|
selectedItems={itemsSelected()}
|
||||||
filterable={true}
|
|
||||||
fill={true}
|
fill={true}
|
||||||
onItemSelect={handleItemSelect}
|
onItemSelect={handleItemSelect}
|
||||||
itemPredicate={filterItemsPredicater}
|
itemPredicate={filterItemsPredicater}
|
||||||
|
|||||||
@@ -11,11 +11,7 @@ function Search({
|
|||||||
openGlobalSearch,
|
openGlobalSearch,
|
||||||
closeGlobalSearch,
|
closeGlobalSearch,
|
||||||
}) {
|
}) {
|
||||||
const items = [
|
const items = [];
|
||||||
{ title: 'The Shawshank Redemption', year: 1994 },
|
|
||||||
{ title: 'The Godfather', year: 1972 },
|
|
||||||
{ title: 'The Godfather: Part II', year: 1974 },
|
|
||||||
];
|
|
||||||
|
|
||||||
const renderSearch = (search, { handleClick }) => (
|
const renderSearch = (search, { handleClick }) => (
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { Formik, Form } from 'formik';
|
|||||||
import { FormattedMessage as T } from 'components';
|
import { FormattedMessage as T } from 'components';
|
||||||
import { Button, Classes } from '@blueprintjs/core';
|
import { Button, Classes } from '@blueprintjs/core';
|
||||||
import { Intent } from '@blueprintjs/core';
|
import { Intent } from '@blueprintjs/core';
|
||||||
|
import intl from 'react-intl-universal';
|
||||||
|
|
||||||
import 'style/pages/ReferenceNumber/ReferenceNumber.scss';
|
import 'style/pages/ReferenceNumber/ReferenceNumber.scss';
|
||||||
|
|
||||||
@@ -54,7 +55,9 @@ export default function ReferenceNumberForm({
|
|||||||
<Form className={'reference-number-form'}>
|
<Form className={'reference-number-form'}>
|
||||||
<div className={Classes.DIALOG_BODY}>
|
<div className={Classes.DIALOG_BODY}>
|
||||||
<p className="paragraph">
|
<p className="paragraph">
|
||||||
Your invoice numbers are set on auto-increment mod. Are you sure changing this setting?
|
{intl.get(
|
||||||
|
'your_invoice_numbers_are_set_on_auto_increment_mod_are_you_sure_changing_this_setting',
|
||||||
|
)}
|
||||||
</p>
|
</p>
|
||||||
<ReferenceNumberFormContent />
|
<ReferenceNumberFormContent />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export default function ReferenceNumberFormContent() {
|
|||||||
<FastField name={'incrementMode'}>
|
<FastField name={'incrementMode'}>
|
||||||
{({ form, field, meta: { error, touched } }) => (
|
{({ form, field, meta: { error, touched } }) => (
|
||||||
<Radio
|
<Radio
|
||||||
label="Auto-incrementing invoice number."
|
label={<T id={'auto_incrementing_number'} />}
|
||||||
value="auto-increment"
|
value="auto-increment"
|
||||||
onChange={() => {
|
onChange={() => {
|
||||||
form.setFieldValue('incrementMode', 'auto');
|
form.setFieldValue('incrementMode', 'auto');
|
||||||
|
|||||||
@@ -1194,5 +1194,9 @@
|
|||||||
"Reports": "التقارير",
|
"Reports": "التقارير",
|
||||||
"New tasks": "مهام جديدة",
|
"New tasks": "مهام جديدة",
|
||||||
"sorry_about_that_something_went_wrong": "نتأسف بشأن ذلك! هناك خطأ ما",
|
"sorry_about_that_something_went_wrong": "نتأسف بشأن ذلك! هناك خطأ ما",
|
||||||
"if_the_problem_stuck_please_contact_us_as_soon_as_possible": "إذا تكررت المشكلة اكتر من مرة ، الرجاء الاتصال بنا في أقرب وقت ممكن."
|
"if_the_problem_stuck_please_contact_us_as_soon_as_possible": "إذا تكررت المشكلة اكتر من مرة ، الرجاء الاتصال بنا في أقرب وقت ممكن.",
|
||||||
|
"non-inventory":"غير مخزون",
|
||||||
|
"terms_conditions":"الشروط والأحكام",
|
||||||
|
"your_invoice_numbers_are_set_on_auto_increment_mod_are_you_sure_changing_this_setting":"Your invoice numbers are set on auto-increment mod. Are you sure changing this setting?",
|
||||||
|
"auto_incrementing_number":"Auto-incrementing number"
|
||||||
}
|
}
|
||||||
@@ -1181,5 +1181,9 @@
|
|||||||
"Reports": "Reports",
|
"Reports": "Reports",
|
||||||
"New tasks": "New tasks",
|
"New tasks": "New tasks",
|
||||||
"sorry_about_that_something_went_wrong": "Sorry about that! Something went wrong",
|
"sorry_about_that_something_went_wrong": "Sorry about that! Something went wrong",
|
||||||
"if_the_problem_stuck_please_contact_us_as_soon_as_possible": "If the problem stuck, please contact us as soon as possible."
|
"if_the_problem_stuck_please_contact_us_as_soon_as_possible": "If the problem stuck, please contact us as soon as possible.",
|
||||||
|
"non-inventory":"Non-Inventory",
|
||||||
|
"terms_conditions":"Terms conditions",
|
||||||
|
"your_invoice_numbers_are_set_on_auto_increment_mod_are_you_sure_changing_this_setting":"Your invoice numbers are set on auto-increment mod. Are you sure changing this setting?",
|
||||||
|
"auto_incrementing_number":"Auto-incrementing number"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user