mirror of
https://github.com/outline/outline.git
synced 2026-11-21 21:44:30 +03:00
* Add disableMentions option for groups - Add database migration to add disableMentions column to groups table - Update server-side Group model with new field - Add disableMentions to group create/update API schemas and endpoints - Update client-side Group model with new field - Add checkbox to EditGroupDialog for disabling mentions - Filter out groups with disableMentions=true from mention suggestions - Prevent notifications for groups with disabled mentions * Fix TypeScript error in GroupDialogs checkbox handler - Add properly typed handleDisableMentionsChange callback - Replace inline onChange handler with typed callback - Fixes TS2339 error: Property 'checked' does not exist on type 'EventTarget' * UI tweaks * Add groups to suggestions endpoint * Remove mentionableData --------- Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com>
14 lines
344 B
TypeScript
14 lines
344 B
TypeScript
import Group from "@server/models/Group";
|
|
|
|
export default async function presentGroup(group: Group) {
|
|
return {
|
|
id: group.id,
|
|
name: group.name,
|
|
externalId: group.externalId,
|
|
memberCount: await group.memberCount,
|
|
disableMentions: group.disableMentions,
|
|
createdAt: group.createdAt,
|
|
updatedAt: group.updatedAt,
|
|
};
|
|
}
|