fix: messages appToaster.

This commit is contained in:
elforjani3
2021-01-25 18:47:24 +02:00
parent 3d080244e6
commit 9fa329bef5
32 changed files with 175 additions and 187 deletions

View File

@@ -78,8 +78,8 @@ function AccountFormDialogContent({
message: formatMessage(
{
id: isNewMode
? 'service_has_been_successful_created'
: 'service_has_been_successful_edited',
? 'service_has_been_created_successfully'
: 'service_has_been_edited_successfully',
},
{
name: toastAccountName,

View File

@@ -85,7 +85,7 @@ function CurencyFormDialogContent({
closeDialog(dialogName);
AppToaster.show({
message: formatMessage({
id: 'the_currency_has_been_successfully_edited',
id: 'the_currency_has_been_edited_successfully',
}),
intent: Intent.SUCCESS,
});
@@ -101,7 +101,7 @@ function CurencyFormDialogContent({
closeDialog(dialogName);
AppToaster.show({
message: formatMessage({
id: 'the_currency_has_been_successfully_created',
id: 'the_currency_has_been_created_successfully',
}),
intent: Intent.SUCCESS,
});

View File

@@ -112,7 +112,7 @@ function ExchangeRateFormDialogContent({
closeDialog(dialogName);
AppToaster.show({
message: formatMessage({
id: 'the_exchange_rate_has_been_successfully_edited',
id: 'the_exchange_rate_has_been_edited_successfully',
}),
intent: Intent.SUCCESS,
});
@@ -128,7 +128,7 @@ function ExchangeRateFormDialogContent({
closeDialog(dialogName);
AppToaster.show({
message: formatMessage({
id: 'the_exchange_rate_has_been_successfully_created',
id: 'the_exchange_rate_has_been_created_successfully',
}),
intent: Intent.SUCCESS,
});

View File

@@ -89,7 +89,7 @@ function InventoryAdjustmentFormDialogContent({
AppToaster.show({
message: formatMessage({
id: 'the_make_adjustment_has_been_successfully_created',
id: 'the_make_adjustment_has_been_created_successfully',
}),
intent: Intent.SUCCESS,
});

View File

@@ -103,8 +103,8 @@ function ItemCategoryFormDialogContent({
AppToaster.show({
message: formatMessage({
id: isNewMode
? 'the_item_category_has_been_successfully_created'
: 'the_item_category_has_been_successfully_edited',
? 'the_item_category_has_been_created_successfully'
: 'the_item_category_has_been_edited_successfully',
}),
intent: Intent.SUCCESS,
});