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