Skip to content

Commit

Permalink
fix(admin): show purchase pages also with Cloud plans and change mess…
Browse files Browse the repository at this point in the history
…age (#19855)
  • Loading branch information
simotae14 committed Mar 25, 2024
1 parent e037d5f commit 1e46ca9
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions packages/core/admin/admin/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ export const SETTINGS_LINKS_CE = (): SettingsMenu => ({
to: '/settings/transfer-tokens?sort=name:ASC',
id: 'transfer-tokens',
},
// If the Enterprise feature is not enabled and if the config doesn't disable it, we promote the Enterprise feature by displaying them in the settings menu.
// If the Enterprise/Cloud feature is not enabled and if the config doesn't disable it, we promote the Enterprise/Cloud feature by displaying them in the settings menu.
// Disable this by adding "promoteEE: false" to your `./config/admin.js` file
...(!window.strapi.features.isEnabled(window.strapi.features.SSO) &&
window.strapi?.flags?.promoteEE
? [
{
intlLabel: { id: 'Settings.sso.title', defaultMessage: 'Single Sign-On' },
to: '/settings/purchase-single-sign-on',
id: 'sso',
id: 'sso-purchase-page',
lockIcon: true,
},
]
Expand All @@ -178,7 +178,7 @@ export const SETTINGS_LINKS_CE = (): SettingsMenu => ({
defaultMessage: 'Review Workflows',
},
to: '/settings/purchase-review-workflows',
id: 'review-workflows',
id: 'review-workflows-purchase-page',
lockIcon: true,
},
]
Expand All @@ -203,7 +203,7 @@ export const SETTINGS_LINKS_CE = (): SettingsMenu => ({
{
intlLabel: { id: 'global.auditLogs', defaultMessage: 'Audit Logs' },
to: '/settings/purchase-audit-logs',
id: 'auditLogs',
id: 'auditLogs-purchase-page',
lockIcon: true,
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const PurchaseAuditLogs = () => {
content={formatMessage({
id: 'Settings.permissions.auditLogs.not-available',
defaultMessage:
'Audit Logs is only available as part of the Enterprise Edition. Upgrade to get a searchable and filterable display of all activities.',
'Audit Logs is only available as part of a paid plan. Upgrade to get a searchable and filterable display of all activities.',
})}
action={
<LinkButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const PurchaseReviewWorkflows = () => {
content={formatMessage({
id: 'Settings.review-workflows.not-available',
defaultMessage:
'Review Workflows is only available as part of the Enterprise Edition. Upgrade to create and manage workflows.',
'Review Workflows is only available as part of a paid plan. Upgrade to create and manage workflows.',
})}
action={
<LinkButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const PurchaseSingleSignOn = () => {
content={formatMessage({
id: 'Settings.sso.not-available',
defaultMessage:
'SSO is only available as part of the Enterprise Edition. Upgrade to configure additional sign-in & sign-up methods for your administration panel.',
'SSO is only available as part of a paid plan. Upgrade to configure additional sign-in & sign-up methods for your administration panel.',
})}
action={
<LinkButton
Expand Down
6 changes: 3 additions & 3 deletions packages/core/admin/admin/src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"Settings.permissions.auditLogs.entry.update": "Update entry{model, select, undefined {} other { ({model})}}",
"Settings.permissions.auditLogs.filters.combobox.aria-label": "Search and select an option to filter",
"Settings.permissions.auditLogs.listview.header.subtitle": "Logs of all the activities that happened in your environment",
"Settings.permissions.auditLogs.not-available": "Audit Logs is only available as part of the Enterprise Edition. Upgrade to get a searchable and filterable display of all activities.",
"Settings.permissions.auditLogs.not-available": "Audit Logs is only available as part of a paid plan. Upgrade to get a searchable and filterable display of all activities.",
"Settings.permissions.auditLogs.media.create": "Create media",
"Settings.permissions.auditLogs.media.delete": "Delete media",
"Settings.permissions.auditLogs.media.update": "Update media",
Expand Down Expand Up @@ -228,7 +228,7 @@
"Settings.review-workflows.page.isLoading": "Workflow is loading",
"Settings.review-workflows.page.delete.confirm.body": "All entries assigned to deleted stages will be moved to the previous stage. Are you sure you want to save?",
"Settings.review-workflows.stage.name.label": "Stage name",
"Settings.review-workflows.not-available": "Review Workflows is only available as part of the Enterprise Edition. Upgrade to create and manage workflows.",
"Settings.review-workflows.not-available": "Review Workflows is only available as part of a paid plan. Upgrade to create and manage workflows.",
"Settings.roles.create.description": "Define the rights given to the role",
"Settings.roles.create.title": "Create a role",
"Settings.roles.created": "Role created",
Expand All @@ -255,7 +255,7 @@
"Settings.sso.form.registration.description": "Create new user on SSO login if no account exists",
"Settings.sso.form.registration.label": "Auto-registration",
"Settings.sso.title": "Single Sign-On",
"Settings.sso.not-available": "SSO is only available as part of the Enterprise Edition. Upgrade to configure additional sign-in & sign-up methods for your administration panel.",
"Settings.sso.not-available": "SSO is only available as part of a paid plan. Upgrade to configure additional sign-in & sign-up methods for your administration panel.",
"Settings.tokens.Button.cancel": "Cancel",
"Settings.tokens.Button.regenerate": "Regenerate",
"Settings.tokens.ListView.headers.createdAt": "Created at",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const PurchaseContentReleases = () => {
content={formatMessage({
id: 'content-releases.pages.PurchaseRelease.not-available',
defaultMessage:
'Releases is only available as part of the Enterprise Edition. Upgrade to create and manage releases.',
'Releases is only available as part of a paid plan. Upgrade to create and manage releases.',
})}
action={
<LinkButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"pages.Releases.max-limit-reached.message": "Upgrade to manage an unlimited number of releases.",
"pages.Releases.max-limit-reached.action": "Explore plans",
"pages.PurchaseRelease.subTitle": "Manage content updates and releases.",
"pages.PurchaseRelease.not-available": "Releases is only available as part of the Enterprise Edition. Upgrade to create and manage releases.",
"pages.PurchaseRelease.not-available": "Releases is only available as part of a paid plan. Upgrade to create and manage releases.",
"header.actions.add-release": "New Release",
"header.actions.refresh": "Refresh",
"header.actions.publish": "Publish",
Expand Down

0 comments on commit 1e46ca9

Please sign in to comment.