add activity dialog on municipios, postoadm, sucos, and aldeias

This commit is contained in:
Wikzyy
2025-04-07 15:06:20 +07:00
parent b24e6f4e18
commit 61211e7e16
8 changed files with 64 additions and 15 deletions

View File

@ -24,6 +24,7 @@ import {
CommandItem,
CommandList
} from '@/components/ui/command';
import { doSaveLogActivity } from '@/actions/GlobalActions';
interface SucosProps {
sucos_id: number;
@ -69,6 +70,13 @@ const EditDialog = () => {
handleEditDialog(false, null);
toast.success('Success Update Aldeias');
reload();
const createActivity = {
module: 'Manage Aldeias',
description: `Edit Aldeias => ${selectedAldeias}`,
action: 'U'
};
doSaveLogActivity(createActivity);
} else {
toast.error('Error Update Aldeias');
setAlert({ show: true, message: 'Error Update Aldeias' });