Merge pull request #1960 from makeplane/sync/ce-ee

Sync: Community Changes
This commit is contained in:
pushya22
2024-12-17 19:16:31 +05:30
committed by GitHub
2 changed files with 18 additions and 4 deletions

View File

@@ -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>

View File

@@ -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>