- Updated the approval request controller to include target_record_id in query parameters for improved filtering. - Refactored the approval request creation logic to merge approval_mode into target_record_data, allowing for better handling of approval processes. - Enhanced the user search functionality in the approval request modal to accommodate additional user attributes such as position and department. - Improved error handling messages for clarity regarding required fields in the approval request modal. - Added new menu item for accessing the approval box directly from user dropdown and app layout. Made-with: Cursor
21 lines
652 B
TypeScript
21 lines
652 B
TypeScript
"use client";
|
|
|
|
import React from "react";
|
|
import { AutoRegisteringComponentRenderer } from "../../AutoRegisteringComponentRenderer";
|
|
import { V2ApprovalStepDefinition } from "./index";
|
|
import { ApprovalStepComponent } from "./ApprovalStepComponent";
|
|
|
|
/**
|
|
* ApprovalStep 렌더러
|
|
* 자동 등록 시스템을 사용하여 컴포넌트를 레지스트리에 등록
|
|
*/
|
|
export class ApprovalStepRenderer extends AutoRegisteringComponentRenderer {
|
|
static componentDefinition = V2ApprovalStepDefinition;
|
|
|
|
render(): React.ReactElement {
|
|
return <ApprovalStepComponent {...this.props} renderer={this} />;
|
|
}
|
|
}
|
|
|
|
ApprovalStepRenderer.registerSelf();
|