Skip to content

Commit a4e03fd

Browse files
committed
feat: rename Project Defaults to Project Settings
ref issue #4267
1 parent d3d76ea commit a4e03fd

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

docs/permissions.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,9 +1100,9 @@ <h2 class="anchor-container">
11001100
<div class="row border-top">
11011101
<div class="col py-2">
11021102
<div class="permission-title anchor-container">
1103-
<a href="#VIEW_PROJECT_DEFAULTS" name="VIEW_PROJECT_DEFAULTS" class="anchor"></a>View Project Defaults Tab
1103+
<a href="#VIEW_PROJECT_SETTINGS" name="VIEW_PROJECT_SETTINGS" class="anchor"></a>View Project Settings Tab
11041104
</div>
1105-
<div class="permission-variable"><small><code>VIEW_PROJECT_DEFAULTS</code></small></div>
1105+
<div class="permission-variable"><small><code>VIEW_PROJECT_SETTINGS</code></small></div>
11061106
<div class="text-black-50 small-text"></div>
11071107
</div>
11081108
<div class="col-9 py-2">

src/config/permissions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,10 +678,10 @@ export const PERMISSIONS = {
678678
],
679679
},
680680

681-
VIEW_PROJECT_DEFAULTS: {
681+
VIEW_PROJECT_SETTINGS: {
682682
meta: {
683683
group: 'Project Details',
684-
title: 'View Project Defaults Tab',
684+
title: 'View Project Settings Tab',
685685
},
686686
projectRoles: [
687687
..._.difference(PROJECT_ALL, [PROJECT_ROLE_CUSTOMER])

src/helpers/projectHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ export function getProjectNavLinks(project, projectId, renderFAQs) {
284284

285285
const searchParams = new URLSearchParams(window.location.search)
286286

287-
if (searchParams.get('beta') === 'true' && hasPermission(PERMISSIONS.VIEW_PROJECT_DEFAULTS)) {
288-
navLinks.push({ label: 'Project Defaults', to: `/projects/${projectId}/settings`, Icon: AccountSecurityIcon, iconClassName: 'stroke' })
287+
if (searchParams.get('beta') === 'true' && hasPermission(PERMISSIONS.VIEW_PROJECT_SETTINGS)) {
288+
navLinks.push({ label: 'Project Settings', to: `/projects/${projectId}/settings`, Icon: AccountSecurityIcon, iconClassName: 'stroke' })
289289
}
290290

291291
return navLinks

src/projects/detail/containers/SecondaryToolBarContainer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ const SecondaryToolBarContainer = ({
4141

4242
const searchParams = new URLSearchParams(window.location.search)
4343

44-
if (searchParams.get('beta') === 'true' && hasPermission(PERMISSIONS.VIEW_PROJECT_DEFAULTS) && project.version === 'v3') {
45-
navLinks.push({ label: 'Project Defaults', to: `/projects/${match.params.projectId}/projectDefaults` })
44+
if (searchParams.get('beta') === 'true' && hasPermission(PERMISSIONS.VIEW_PROJECT_SETTINGS) && project.version === 'v3') {
45+
navLinks.push({ label: 'Project Settings', to: `/projects/${match.params.projectId}/settings` })
4646
}
4747

4848
return (

0 commit comments

Comments
 (0)