fix: hidden creating statuses when board is not selected
This commit is contained in:
@ -40,6 +40,7 @@ type Props<TContainer, TItem> = {
|
||||
getItemsByContainer: (container: TContainer, items: TItem[]) => TItem[];
|
||||
activeContainer: TContainer | null;
|
||||
activeItem: TItem | null;
|
||||
isCreatingContainerEnabled?: boolean;
|
||||
disabledColumns?: boolean;
|
||||
};
|
||||
|
||||
@ -60,6 +61,7 @@ const FunnelDnd = <
|
||||
getItemsByContainer,
|
||||
activeContainer,
|
||||
activeItem,
|
||||
isCreatingContainerEnabled = true,
|
||||
disabledColumns = false,
|
||||
}: Props<TContainer, TItem>) => {
|
||||
const sensors = useDndSensors();
|
||||
@ -106,7 +108,7 @@ const FunnelDnd = <
|
||||
}}
|
||||
classNames={styles}>
|
||||
{renderContainers()}
|
||||
<CreateStatusButton />
|
||||
{isCreatingContainerEnabled && <CreateStatusButton />}
|
||||
</Carousel>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user