Skip to content

Commit

Permalink
[FE] FIX: DUMMY인 경우 "발표 취소" 선택 불가하게 수정 #1691
Browse files Browse the repository at this point in the history
  • Loading branch information
wet6123 committed Oct 27, 2024
1 parent 2231a40 commit ef20680
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const DetailTableBodyItem = ({
presentationStatus: item.presentationStatus,
presentationLocation: item.presentationLocation,
detail: item.detail,
category: item.category,
});
openAdminModal("statusModal");
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,14 @@ const EditStatusModal = ({ list, closeModal }: EditStatusModalProps) => {
IDropdownOptions[]
>([]);
const statusDropdownProps = {
options: statusOptions,
options: statusOptions.map((option) => ({
...option,
isDisabled:
currentPresentation?.category === "DUMMY" &&
option.value === PresentationStatusType.CANCEL
? true
: false,
})),
defaultValue:
statusOptions.find(
(option) => option.value === currentPresentation?.presentationStatus
Expand Down
1 change: 1 addition & 0 deletions frontend/src/Presentation/types/dto/presentation.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface IPresentationInfo {
presentationTime: PresentationPeriodType | null;
presentationLocation?: string | null;
detail: string | null;
category: PresentationCategoryType | "DUMMY" | null;
}

export interface IPresentationScheduleDetailInfo {
Expand Down

0 comments on commit ef20680

Please sign in to comment.