add activity dialog on municipios, postoadm, sucos, and aldeias
This commit is contained in:
@ -24,6 +24,7 @@ import {
|
||||
CommandItem,
|
||||
CommandList
|
||||
} from '@/components/ui/command';
|
||||
import { doSaveLogActivity } from '@/actions/GlobalActions';
|
||||
|
||||
interface MunicipioProps {
|
||||
id: number;
|
||||
@ -72,6 +73,14 @@ const EditDialog = () => {
|
||||
resetForm();
|
||||
toast.success('Success Update Posto Adm');
|
||||
reload();
|
||||
|
||||
const createActivity = {
|
||||
module: 'Manage Posto Administrativo',
|
||||
description: `Edit PostoAdms => ${selectedPostoAdms}`,
|
||||
action: 'U'
|
||||
};
|
||||
|
||||
doSaveLogActivity(createActivity);
|
||||
} else {
|
||||
toast.error('Error Update Posto Adm');
|
||||
setAlert({ show: true, message: 'Failed to update posto adm. Please try again.' });
|
||||
|
||||
Reference in New Issue
Block a user