overleaf/services/web/app/coffee/Features/UserMembership/UserMembershipEntityConfigs.coffee
Chrystal Maria Griffiths afbeec3b02 Merge pull request #1099 from sharelatex/ta-management-ui-title
Management UI Wording Tweaks

GitOrigin-RevId: 9e1a8990f226e1fda423f6fa6efa25cf3b924544
2018-11-13 10:53:56 +00:00

63 lines
1.5 KiB
CoffeeScript

module.exports =
group:
modelName: 'Subscription'
readOnly: true
hasMembersLimit: true
fields:
primaryKey: '_id'
read: ['invited_emails', 'teamInvites', 'member_ids']
write: null
access: 'manager_ids'
name: 'teamName'
baseQuery:
groupPlan: true
translations:
title: 'group_account'
subtitle: 'members_management'
remove: 'remove_from_group'
pathsFor: (id) ->
addMember: "/manage/groups/#{id}/invites"
removeMember: "/manage/groups/#{id}/user"
removeInvite: "/manage/groups/#{id}/invites"
exportMembers: "/manage/groups/#{id}/members/export"
team: # for metrics only
modelName: 'Subscription'
fields:
primaryKey: 'overleaf.id'
access: 'manager_ids'
baseQuery:
groupPlan: true
groupManagers:
modelName: 'Subscription'
fields:
primaryKey: '_id'
read: ['manager_ids']
write: 'manager_ids'
access: 'manager_ids'
name: 'teamName'
baseQuery:
groupPlan: true
translations:
title: 'group_account'
subtitle: 'managers_management'
remove: 'remove_manager'
pathsFor: (id) ->
addMember: "/manage/groups/#{id}/managers"
removeMember: "/manage/groups/#{id}/managers"
institution:
modelName: 'Institution'
fields:
primaryKey: 'v1Id'
read: ['managerIds']
write: 'managerIds'
access: 'managerIds'
translations:
title: 'institution_account'
subtitle: 'managers_management'
remove: 'remove_manager'
pathsFor: (id) ->
addMember: "/manage/institutions/#{id}/managers"
removeMember: "/manage/institutions/#{id}/managers"