fix: bug fixes (#3010)

* fix: project view modal auto close bug fix

* fix: issue peek overview label select permission validation added
This commit is contained in:
Anmol Singh Bhatia 2023-12-06 19:10:53 +05:30 committed by sriram veeraghanta
parent c5cc706978
commit aba4592b73
3 changed files with 12 additions and 13 deletions

View file

@ -17,10 +17,11 @@ type Props = {
onChange: (value: string[]) => void;
projectId: string;
label?: JSX.Element;
disabled?: boolean;
};
export const IssueLabelSelect: React.FC<Props> = observer((props) => {
const { setIsOpen, value, onChange, projectId, label } = props;
const { setIsOpen, value, onChange, projectId, label, disabled = false } = props;
// states
const [query, setQuery] = useState("");
@ -50,7 +51,14 @@ export const IssueLabelSelect: React.FC<Props> = observer((props) => {
query === "" ? issueLabels : issueLabels?.filter((l) => l.name.toLowerCase().includes(query.toLowerCase()));
return (
<Combobox as="div" value={value} onChange={(val) => onChange(val)} className="relative flex-shrink-0" multiple>
<Combobox
as="div"
value={value}
onChange={(val) => onChange(val)}
className="relative flex-shrink-0"
multiple
disabled={disabled}
>
{({ open }: any) => (
<>
<Combobox.Button as={Fragment}>