mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: disable label combining for labels inside a group (#3069)
This commit is contained in:
parent
82c0ee00a3
commit
c7cad452ab
@ -77,7 +77,6 @@ export const ProjectSettingLabelGroup: React.FC<Props> = observer((props) => {
|
|||||||
<Droppable
|
<Droppable
|
||||||
key={`label.group.droppable.${label.id}`}
|
key={`label.group.droppable.${label.id}`}
|
||||||
droppableId={`label.group.droppable.${label.id}`}
|
droppableId={`label.group.droppable.${label.id}`}
|
||||||
isCombineEnabled={!groupDragSnapshot.isDragging && !isUpdating}
|
|
||||||
isDropDisabled={groupDragSnapshot.isDragging || isUpdating || isDropDisabled}
|
isDropDisabled={groupDragSnapshot.isDragging || isUpdating || isDropDisabled}
|
||||||
>
|
>
|
||||||
{(droppableProvided) => (
|
{(droppableProvided) => (
|
||||||
|
@ -10,11 +10,17 @@ import {
|
|||||||
DropResult,
|
DropResult,
|
||||||
Droppable,
|
Droppable,
|
||||||
} from "@hello-pangea/dnd";
|
} from "@hello-pangea/dnd";
|
||||||
|
|
||||||
// store
|
// store
|
||||||
import { useMobxStore } from "lib/mobx/store-provider";
|
import { useMobxStore } from "lib/mobx/store-provider";
|
||||||
|
// hooks
|
||||||
|
import useDraggableInPortal from "hooks/use-draggable-portal";
|
||||||
// components
|
// components
|
||||||
import { CreateUpdateLabelInline, DeleteLabelModal, ProjectSettingLabelGroup } from "components/labels";
|
import {
|
||||||
|
CreateUpdateLabelInline,
|
||||||
|
DeleteLabelModal,
|
||||||
|
ProjectSettingLabelGroup,
|
||||||
|
ProjectSettingLabelItem,
|
||||||
|
} from "components/labels";
|
||||||
// ui
|
// ui
|
||||||
import { Button, Loader } from "@plane/ui";
|
import { Button, Loader } from "@plane/ui";
|
||||||
import { EmptyState } from "components/common";
|
import { EmptyState } from "components/common";
|
||||||
@ -22,9 +28,6 @@ import { EmptyState } from "components/common";
|
|||||||
import emptyLabel from "public/empty-state/label.svg";
|
import emptyLabel from "public/empty-state/label.svg";
|
||||||
// types
|
// types
|
||||||
import { IIssueLabel } from "types";
|
import { IIssueLabel } from "types";
|
||||||
//component
|
|
||||||
import { ProjectSettingLabelItem } from "./project-setting-label-item";
|
|
||||||
import useDraggableInPortal from "hooks/use-draggable-portal";
|
|
||||||
|
|
||||||
const LABELS_ROOT = "labels.root";
|
const LABELS_ROOT = "labels.root";
|
||||||
|
|
||||||
@ -137,7 +140,7 @@ export const ProjectSettingsLabelList: React.FC = observer(() => {
|
|||||||
isDropDisabled={isUpdating}
|
isDropDisabled={isUpdating}
|
||||||
>
|
>
|
||||||
{(droppableProvided, droppableSnapshot) => (
|
{(droppableProvided, droppableSnapshot) => (
|
||||||
<div className={`mt-3`} ref={droppableProvided.innerRef} {...droppableProvided.droppableProps}>
|
<div className="mt-3" ref={droppableProvided.innerRef} {...droppableProvided.droppableProps}>
|
||||||
{projectLabelsTree.map((label, index) => {
|
{projectLabelsTree.map((label, index) => {
|
||||||
if (label.children && label.children.length) {
|
if (label.children && label.children.length) {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user