Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,18 @@ export const IssueLabelSelect: React.FC<IIssueLabelSelect> = observer((props) =>
) : canCreateLabel ? (
<p
onClick={() => {
if(!query.length) return
handleAddLabel(query);
}}
className="text-left text-custom-text-200 cursor-pointer"
className={`text-left text-custom-text-200 ${query.length ? "cursor-pointer" : "cursor-default"}`}
>
+ Add <span className="text-custom-text-100">&quot;{query}&quot;</span> to labels
{query.length ? (
<>
+ Add <span className="text-custom-text-100">&quot;{query}&quot;</span> to labels
</>
) : (
"Type to add a new label"
)}
</p>
) : (
<p className="text-left text-custom-text-200 ">No matching results.</p>
Expand Down
11 changes: 9 additions & 2 deletions web/core/components/issues/issue-layouts/properties/labels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,18 @@ export const IssuePropertyLabels: React.FC<IIssuePropertyLabels> = observer((pro
) : canCreateLabel ? (
<p
onClick={() => {
if (!query.length) return;
handleAddLabel(query);
}}
className="text-left text-custom-text-200 cursor-pointer"
className={`text-left text-custom-text-200 ${query.length ? "cursor-pointer" : "cursor-default"}`}
>
+ Add <span className="text-custom-text-100">&quot;{query}&quot;</span> to labels
{query.length ? (
<>
+ Add <span className="text-custom-text-100">&quot;{query}&quot;</span> to labels
</>
) : (
"Type to add a new label"
)}
</p>
) : (
<p className="text-left text-custom-text-200 ">No matching results.</p>
Expand Down