feat(admin): unrestricted support ticket batch select and task ticket bind
Allow selecting support tickets of any status for batch actions; add optional support ticket binding when creating a dev plan task. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -577,11 +577,7 @@ export default function SupportTicketsPage() {
|
||||
isSuperAdmin
|
||||
? {
|
||||
selectedRowKeys,
|
||||
onChange: (keys, rows) => {
|
||||
const pending = rows.filter((r) => r.status === 'PENDING_REVIEW').map((r) => String(r.id));
|
||||
setSelectedRowKeys(pending.length === rows.length ? (keys as string[]) : pending);
|
||||
},
|
||||
getCheckboxProps: (row) => ({ disabled: row.status !== 'PENDING_REVIEW' }),
|
||||
onChange: (keys) => setSelectedRowKeys(keys as string[]),
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user