Speed up lead board load and polish lead detail/list UX.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -70,8 +70,13 @@ export class LeadsController {
|
||||
}
|
||||
|
||||
@Get('stages')
|
||||
listStages(@CurrentUser() user: Actor) {
|
||||
return this.stages.list(user.organizationId);
|
||||
listStages(
|
||||
@CurrentUser() user: Actor,
|
||||
@Query('counts') counts?: string,
|
||||
) {
|
||||
return this.stages.list(user.organizationId, {
|
||||
withLeadCounts: counts !== '0' && counts !== 'false',
|
||||
});
|
||||
}
|
||||
|
||||
@Post('stages')
|
||||
|
||||
Reference in New Issue
Block a user