fix: labels empty state for drop down (#6216)
This commit is contained in:
parent
ede4aad55b
commit
ddd4b51b4e
2 changed files with 18 additions and 4 deletions
|
|
@ -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">"{query}"</span> to labels
|
||||
{query.length ? (
|
||||
<>
|
||||
+ Add <span className="text-custom-text-100">"{query}"</span> to labels
|
||||
</>
|
||||
) : (
|
||||
"Type to add a new label"
|
||||
)}
|
||||
</p>
|
||||
) : (
|
||||
<p className="text-left text-custom-text-200 ">No matching results.</p>
|
||||
|
|
|
|||
|
|
@ -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">"{query}"</span> to labels
|
||||
{query.length ? (
|
||||
<>
|
||||
+ Add <span className="text-custom-text-100">"{query}"</span> to labels
|
||||
</>
|
||||
) : (
|
||||
"Type to add a new label"
|
||||
)}
|
||||
</p>
|
||||
) : (
|
||||
<p className="text-left text-custom-text-200 ">No matching results.</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue