mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #32033 from overleaf/ii-project-sharing-admin-page
[web] Sharing permissions group admin page GitOrigin-RevId: 97baeeca9ca33cec043badcae2affdd954081ef2
This commit is contained in:
+24
-11
@@ -96,6 +96,8 @@ export default function ManagedGroupSubscriptions() {
|
||||
|
||||
const combinedUserManagement = useFeatureFlag('combined-user-management')
|
||||
|
||||
const isSharingUpdatesEnabled = useFeatureFlag('sharing-updates')
|
||||
|
||||
if (!managedGroupSubscriptions) {
|
||||
return null
|
||||
}
|
||||
@@ -147,17 +149,28 @@ export default function ManagedGroupSubscriptions() {
|
||||
<GroupSettingsButtonWithAdBadge subscription={subscription} />
|
||||
)}
|
||||
{isAdmin && (
|
||||
<RowLink
|
||||
href={`/manage/groups/${subscription._id}/audit-logs`}
|
||||
heading={t('audit_logs')}
|
||||
subtext={t('view_audit_logs_group_subtext')}
|
||||
icon="list"
|
||||
onClick={() =>
|
||||
sendMB('group-audit-log-click', {
|
||||
subscriptionId: subscription._id,
|
||||
})
|
||||
}
|
||||
/>
|
||||
<>
|
||||
{isSharingUpdatesEnabled &&
|
||||
subscription.planLevelName === 'Professional' && (
|
||||
<RowLink
|
||||
href={`/manage/groups/${subscription._id}/sharing-permissions`}
|
||||
heading={t('sharing_permissions')}
|
||||
subtext={t('manage_group_sharing_permissions_subtext')}
|
||||
icon="share"
|
||||
/>
|
||||
)}
|
||||
<RowLink
|
||||
href={`/manage/groups/${subscription._id}/audit-logs`}
|
||||
heading={t('audit_logs')}
|
||||
subtext={t('view_audit_logs_group_subtext')}
|
||||
icon="list"
|
||||
onClick={() =>
|
||||
sendMB('group-audit-log-click', {
|
||||
subscriptionId: subscription._id,
|
||||
})
|
||||
}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
<RowLink
|
||||
href={`/metrics/groups/${subscription._id}`}
|
||||
|
||||
@@ -68,6 +68,7 @@ import { AdminCapability } from '../../../types/admin-capabilities'
|
||||
import { AlgoliaConfig } from '../../../modules/algolia-search/frontend/js/types'
|
||||
import { WritefullPublicEnv } from '@wf/domain/writefull-public-env'
|
||||
import { UserNotificationPreferences } from '../../../types/notifications'
|
||||
import { SharingPermissions } from '../../../modules/sharing-permissions/app/src/types'
|
||||
|
||||
export interface Meta {
|
||||
'ol-ExposedSettings': ExposedSettings
|
||||
@@ -266,6 +267,7 @@ export interface Meta {
|
||||
'ol-script-logs': ScriptLogType[]
|
||||
'ol-settingsGroupSSO': { enabled: boolean } | undefined
|
||||
'ol-settingsPlans': Plan[]
|
||||
'ol-sharingPermissions': SharingPermissions
|
||||
'ol-shouldAllowEditingDetails': boolean
|
||||
'ol-shouldLoadHotjar': boolean
|
||||
'ol-showAiFeatures': boolean
|
||||
|
||||
Reference in New Issue
Block a user