[web] use correct term in setPublicAccessLevel API wrapper (#25848)

GitOrigin-RevId: 022c59d6d5c6f239438ed8e91f3ca47954198a0c
This commit is contained in:
Jakob Ackermann
2025-06-02 13:38:47 +02:00
committed by Copybot
parent 0aae5c48b4
commit 3fbbb50ef7
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
import { useCallback, useState, useEffect } from 'react'
import { useTranslation } from 'react-i18next'
import { useShareProjectContext } from './share-project-modal'
import { setProjectAccessLevel } from '../utils/api'
import { setPublicAccessLevel } from '../utils/api'
import { CopyToClipboard } from '@/shared/components/copy-to-clipboard'
import { useProjectContext } from '@/shared/context/project-context'
import * as eventTracking from '../../../infrastructure/event-tracking'
@@ -43,7 +43,7 @@ export default function LinkSharing() {
project_id: projectId,
})
monitorRequest(() =>
setProjectAccessLevel(projectId, newPublicAccessLevel)
setPublicAccessLevel(projectId, newPublicAccessLevel)
)
.then(() => {
// NOTE: not calling `updateProject` here as it receives data via

View File

@@ -47,7 +47,7 @@ export function transferProjectOwnership(projectId, member) {
})
}
export function setProjectAccessLevel(projectId, publicAccessLevel) {
export function setPublicAccessLevel(projectId, publicAccessLevel) {
return postJSON(`/project/${projectId}/settings/admin`, {
body: { publicAccessLevel },
})