update log activity object information
This commit is contained in:
@ -73,7 +73,7 @@ const AddDialog = () => {
|
||||
reload();
|
||||
const createActivity = {
|
||||
module: 'Manage Aldeias',
|
||||
description: `Create Aldeia => ${selectedAldeias}`,
|
||||
description: `Create Aldeia => ${formField.name}`,
|
||||
action: 'C'
|
||||
};
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ const DeleteDialog = () => {
|
||||
|
||||
const createActivity = {
|
||||
module: 'Manage Aldeias',
|
||||
description: `Edit Aldeia => ${selectedAldeias}`,
|
||||
description: `Delete Aldeia => ${selectedAldeias}`,
|
||||
action: 'D'
|
||||
};
|
||||
|
||||
|
||||
@ -83,7 +83,7 @@ const AddDialog = () => {
|
||||
toast.success('Success Create Conversion');
|
||||
const createActivity = {
|
||||
module: 'Manage Conversion',
|
||||
description: `Create Conversion => ${selectedConversion}`,
|
||||
description: `Create Conversion => ${formField.id_currency_origin} => ${formField.id_currency_destination}`,
|
||||
action: 'C'
|
||||
};
|
||||
|
||||
@ -275,7 +275,6 @@ const AddDialog = () => {
|
||||
</SelectContent>
|
||||
</Select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div className="flex justify-end gap-5">
|
||||
<Button type="button" variant="outline" onClick={resetForm}>
|
||||
|
||||
@ -32,10 +32,9 @@ const DeleteDialog = () => {
|
||||
return;
|
||||
}
|
||||
// console.log(selectedConversion);
|
||||
const response = await DeleteData(
|
||||
`${API_URL}/dashboard/conversion/${selectedConversion}`,
|
||||
{ id: selectedConversion }
|
||||
);
|
||||
const response = await DeleteData(`${API_URL}/dashboard/conversion/${selectedConversion}`, {
|
||||
id: selectedConversion
|
||||
});
|
||||
|
||||
if (response?.status) {
|
||||
setAlert({ show: false, message: '' });
|
||||
|
||||
@ -83,7 +83,7 @@ const AddDialog = () => {
|
||||
toast.success('Success Create Currency');
|
||||
const createActivity = {
|
||||
module: 'Manage Currency',
|
||||
description: `Create Currency=> ${selectedCurrency}`,
|
||||
description: `Create Currency=> ${formField.name}`,
|
||||
action: 'C'
|
||||
};
|
||||
|
||||
|
||||
@ -57,7 +57,7 @@ const AddDialog = () => {
|
||||
toast.success('Municipio created successfully!');
|
||||
const createActivity = {
|
||||
module: 'Manage Municipios',
|
||||
description: `Create Municipio => ${selectedMunicipios}`,
|
||||
description: `Create Municipio => ${formField.name}`,
|
||||
action: 'C'
|
||||
};
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ const DeleteDialog = () => {
|
||||
|
||||
const createActivity = {
|
||||
module: 'Manage Municipios',
|
||||
description: `Edit Municipio',', => ${selectedMunicipios}`,
|
||||
description: `Delete Municipio => ${selectedMunicipios}`,
|
||||
action: 'D'
|
||||
};
|
||||
|
||||
|
||||
@ -75,7 +75,7 @@ const AddDialog = () => {
|
||||
toast.success('Posto Adm created successfully!');
|
||||
const createActivity = {
|
||||
module: 'Manage Posto Administrativo',
|
||||
description: `Create PostoAdms => ${selectedPostoAdms}`,
|
||||
description: `Create PostoAdms => ${formField.name}`,
|
||||
action: 'C'
|
||||
};
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ const DeleteDialog = () => {
|
||||
reload();
|
||||
const createActivity = {
|
||||
module: 'Manage Posto Administrativo',
|
||||
description: `Edit PostoAdms => ${selectedPostoAdms}`,
|
||||
description: `Delete PostoAdms => ${selectedPostoAdms}`,
|
||||
action: 'D'
|
||||
};
|
||||
|
||||
|
||||
@ -79,7 +79,7 @@ const AddDialog = () => {
|
||||
|
||||
const createActivity = {
|
||||
module: 'Manage Products',
|
||||
description: `Create Product => ${selectedProducts}`,
|
||||
description: `Create Product => ${formField.name}`,
|
||||
action: 'C'
|
||||
};
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ const DeleteDialog = () => {
|
||||
reload();
|
||||
const createActivity = {
|
||||
module: 'Manage Product',
|
||||
description: `Edit Product',', => ${selectedProducts}`,
|
||||
description: `Delete Product',', => ${selectedProducts}`,
|
||||
action: 'D'
|
||||
};
|
||||
|
||||
|
||||
@ -57,7 +57,7 @@ const AddDialog = () => {
|
||||
|
||||
const createActivity = {
|
||||
module: 'Manage Profession',
|
||||
description: `Create Profession => ${selectedProfession}`,
|
||||
description: `Create Profession => ${formField.name}`,
|
||||
action: 'C'
|
||||
};
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ const DeleteDialog = () => {
|
||||
reload();
|
||||
const createActivity = {
|
||||
module: 'Manage Profession',
|
||||
description: `Edit Profession', => ${selectedProfession}`,
|
||||
description: `Delete Profession', => ${selectedProfession}`,
|
||||
action: 'D'
|
||||
};
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@ const AddDialog = () => {
|
||||
toast.success('Success Create Provider');
|
||||
const createActivity = {
|
||||
module: 'Manage Provider',
|
||||
description: `Create Provider => ${selectedProvider}`,
|
||||
description: `Create Provider => ${formField.name}`,
|
||||
action: 'C'
|
||||
};
|
||||
|
||||
|
||||
@ -72,7 +72,7 @@ const AddDialog = () => {
|
||||
toast.success('Sucos created successfully!');
|
||||
const createActivity = {
|
||||
module: 'Manage Sucos',
|
||||
description: `Create Suco => ${selectedSucos}`,
|
||||
description: `Create Suco => ${formField.name}`,
|
||||
action: 'C'
|
||||
};
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ const DeleteDialog = () => {
|
||||
reload();
|
||||
const createActivity = {
|
||||
module: 'Manage Sucos',
|
||||
description: `Edit Suco => ${selectedSucos}`,
|
||||
description: `Delete Suco => ${selectedSucos}`,
|
||||
action: 'D'
|
||||
};
|
||||
|
||||
|
||||
@ -40,7 +40,7 @@ const DeleteDialog = () => {
|
||||
reload();
|
||||
const createActivity = {
|
||||
module: 'Manage Wallet Rule',
|
||||
description: `Edit Wallet Rule', => ${selectedWalletRule.ID}`,
|
||||
description: `Delete Wallet Rule', => ${selectedWalletRule.ID}`,
|
||||
action: 'D'
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user