You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2023/08/21 09:46:24 UTC

[incubator-devlake] branch feat-5640 created (now 91750d964)

This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a change to branch feat-5640
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


      at 91750d964 feat(config-ui): support props disabled for multi-selector

This branch includes the following new commits:

     new 91750d964 feat(config-ui): support props disabled for multi-selector

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-devlake] 01/01: feat(config-ui): support props disabled for multi-selector

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch feat-5640
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 91750d964022d437df4dc68ae9e7bcd856ea147b
Author: mintsweet <0x...@gmail.com>
AuthorDate: Mon Aug 21 21:46:10 2023 +1200

    feat(config-ui): support props disabled for multi-selector
---
 config-ui/src/components/selector/multi-selector/index.tsx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/config-ui/src/components/selector/multi-selector/index.tsx b/config-ui/src/components/selector/multi-selector/index.tsx
index ead340e03..4d48c6c4b 100644
--- a/config-ui/src/components/selector/multi-selector/index.tsx
+++ b/config-ui/src/components/selector/multi-selector/index.tsx
@@ -24,6 +24,7 @@ import { useDebounce } from 'ahooks';
 interface Props<T> {
   placeholder?: string;
   loading?: boolean;
+  disabled?: boolean;
   items: T[];
   disabledItems?: T[];
   getKey?: (item: T) => string | number;
@@ -38,6 +39,7 @@ interface Props<T> {
 export const MultiSelector = <T,>({
   placeholder,
   loading = false,
+  disabled = false,
   items,
   disabledItems = [],
   getKey = (it) => it as string,
@@ -119,6 +121,7 @@ export const MultiSelector = <T,>({
 
   return (
     <MultiSelect2
+      disabled={disabled}
       resetOnSelect
       fill
       placeholder={placeholder ?? 'Select...'}