22 lines
475 B
TypeScript
22 lines
475 B
TypeScript
import { createCrudHandler } from '~/handlers/_handler'
|
|
import { postMaterial, patchMaterial, removeMaterial } from '~/services/material.service'
|
|
|
|
export const {
|
|
recId,
|
|
recAction,
|
|
recItem,
|
|
isReadonly,
|
|
isProcessing,
|
|
isFormEntryDialogOpen,
|
|
isRecordConfirmationOpen,
|
|
onResetState,
|
|
handleActionSave,
|
|
handleActionEdit,
|
|
handleActionRemove,
|
|
handleCancelForm,
|
|
} = createCrudHandler({
|
|
post: postMaterial,
|
|
patch: patchMaterial,
|
|
remove: removeMaterial,
|
|
})
|