feat(ticket): support criteria-based global ticket assignment
This commit is contained in:
@@ -27,6 +27,7 @@ interface MultiSelectPopoverProps {
|
||||
onValuesChange: (values: string[]) => void;
|
||||
searchPlaceholder?: string;
|
||||
emptyMessage?: string;
|
||||
emptySelectionLabel?: string;
|
||||
align?: 'start' | 'center' | 'end';
|
||||
}
|
||||
|
||||
@@ -45,6 +46,7 @@ export function MultiSelectPopover({
|
||||
onValuesChange,
|
||||
searchPlaceholder = 'Search',
|
||||
emptyMessage = 'No options found.',
|
||||
emptySelectionLabel,
|
||||
align = 'end',
|
||||
}: MultiSelectPopoverProps) {
|
||||
const [search, setSearch] = useState('');
|
||||
@@ -96,7 +98,11 @@ export function MultiSelectPopover({
|
||||
>
|
||||
{icon}
|
||||
{label}
|
||||
<Badge variant="secondary">{values.length}</Badge>
|
||||
<Badge variant="secondary">
|
||||
{values.length === 0 && emptySelectionLabel
|
||||
? emptySelectionLabel
|
||||
: values.length}
|
||||
</Badge>
|
||||
<ChevronDown />
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
|
||||
Reference in New Issue
Block a user