add create activity on 4 modules: Provider, Conversion, Menu, Currency

This commit is contained in:
bagusajisaputroo
2025-04-07 16:17:00 +07:00
parent 5e719eefa2
commit 10937bceeb
12 changed files with 114 additions and 11 deletions

View File

@ -22,6 +22,7 @@ import {
SelectTrigger,
SelectValue
} from '@/components/ui/select';
import { doSaveLogActivity } from '@/actions/GlobalActions';
const API_URL = apiConfig.service_dashboard;
@ -69,6 +70,13 @@ const EditDialog = () => {
handleEditDialog(false, null);
resetForm();
toast.success('Success Update Menu');
const createActivity = {
module: 'Manage Menu',
description: `Update Menu => ${selectedMenu}`,
action: 'U'
};
doSaveLogActivity(createActivity);
reload();
} else {
toast.error('Failed Update Menu');