mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +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:
@@ -149,11 +149,14 @@
|
||||
"and_much_more": "",
|
||||
"annual_discount": "",
|
||||
"anonymous": "",
|
||||
"anyone": "",
|
||||
"anyone_in_x": "",
|
||||
"anyone_with_link_can_edit": "",
|
||||
"anyone_with_link_can_view": "",
|
||||
"app_on_x": "",
|
||||
"appearance": "",
|
||||
"apply": "",
|
||||
"apply_changes": "",
|
||||
"apply_educational_discount_description_with_group_discount": "",
|
||||
"apply_suggestion": "",
|
||||
"archive": "",
|
||||
@@ -217,6 +220,8 @@
|
||||
"buy_more_licenses": "",
|
||||
"buy_now_no_exclamation_mark": "",
|
||||
"by_continuing_you_agree_to_use_this_feature_in_line_with_your_institutions_policies": "",
|
||||
"by_email": "",
|
||||
"by_sharing_link": "",
|
||||
"by_subscribing_you_agree_to_our_terms_of_service": "",
|
||||
"can_link_institution_email_acct_to_institution_acct": "",
|
||||
"can_link_your_institution_acct_2": "",
|
||||
@@ -266,6 +271,8 @@
|
||||
"change_the_ownership_of_your_personal_projects": "",
|
||||
"change_to_group_plan": "",
|
||||
"change_to_this_plan": "",
|
||||
"changes_applied": "",
|
||||
"changes_to_these_settings_will_be_applied_to_all_new_projects": "",
|
||||
"changing_the_position_of_your_figure": "",
|
||||
"changing_the_position_of_your_table": "",
|
||||
"characters": "",
|
||||
@@ -1082,6 +1089,7 @@
|
||||
"manage_group_settings_subtext": "",
|
||||
"manage_group_settings_subtext_group_sso": "",
|
||||
"manage_group_settings_subtext_managed_users": "",
|
||||
"manage_group_sharing_permissions_subtext": "",
|
||||
"manage_institution_managers": "",
|
||||
"manage_managers_subtext": "",
|
||||
"manage_newsletter": "",
|
||||
@@ -1198,6 +1206,7 @@
|
||||
"no_messages_yet": "",
|
||||
"no_new_commits_in_github": "",
|
||||
"no_one_has_commented_or_left_any_suggestions_yet": "",
|
||||
"no_one_sharing_link_is_disabled": "",
|
||||
"no_other_projects_found": "",
|
||||
"no_pdf_error_explanation": "",
|
||||
"no_pdf_error_reason_no_content": "",
|
||||
@@ -1682,6 +1691,7 @@
|
||||
"share_project": "",
|
||||
"shared_with_you": "",
|
||||
"sharelatex_beta_program": "",
|
||||
"sharing_permissions": "",
|
||||
"shortcut_to_open_advanced_reference_search": "",
|
||||
"show_all_projects": "",
|
||||
"show_breadcrumbs": "",
|
||||
@@ -1937,6 +1947,7 @@
|
||||
"this_grants_access_to_features_2": "",
|
||||
"this_is_the_file_that_references_pulled_from_your_reference_manager_will_be_added_to": "",
|
||||
"this_organization_is_tax_exempt": "",
|
||||
"this_policy_applies_to_all_projects_owned_by_your_group_members": "",
|
||||
"this_project_already_has_maximum_collaborators": "",
|
||||
"this_project_exceeded_collaborator_limit": "",
|
||||
"this_project_exceeded_compile_timeout_limit_on_free_plan": "",
|
||||
@@ -2251,6 +2262,7 @@
|
||||
"what_should_we_call_you": "",
|
||||
"what_would_you_like_to_do": "",
|
||||
"when_you_tick_the_include_caption_box": "",
|
||||
"who_can_be_invited_to_group_members_projects": "",
|
||||
"why_not_pause_instead": "",
|
||||
"wide": "",
|
||||
"will_lose_edit_access_on_date": "",
|
||||
|
||||
+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