diff --git a/web/components/issues/issue-layouts/properties/labels.tsx b/web/components/issues/issue-layouts/properties/labels.tsx index d9c9d3826..d54b67a9c 100644 --- a/web/components/issues/issue-layouts/properties/labels.tsx +++ b/web/components/issues/issue-layouts/properties/labels.tsx @@ -88,6 +88,59 @@ export const IssuePropertyLabels: React.FC = observer((pro ], }); + const label = ( +
+ {value.length > 0 ? ( + value.length <= maxRender ? ( + <> + {(projectLabels ? projectLabels : []) + ?.filter((l) => value.includes(l.id)) + .map((label) => ( +
+
+ + {label.name} +
+
+ ))} + + ) : ( +
+ value.includes(l.id)) + .map((l) => l.name) + .join(", ")} + > +
+ + {`${value.length} Labels`} +
+
+
+ ) + ) : ( +
+ Select labels +
+ )} +
+ ); + return ( = observer((pro } ${buttonClassName}`} onClick={() => fetchProjectLabels()} > -
- {value.length > 0 ? ( - value.length <= maxRender ? ( - <> - {(projectLabels ? projectLabels : []) - ?.filter((l) => value.includes(l.id)) - .map((label) => ( -
-
- - {label.name} -
-
- ))} - - ) : ( -
- value.includes(l.id)) - .map((l) => l.name) - .join(", ")} - > -
- - {`${value.length} Labels`} -
-
-
- ) - ) : ( -
- Select labels -
- )} -
+ {label} {!hideDropdownArrow && !disabled &&