refactor: 💡 update messages & update button to match new change (#2382)

* refactor: 💡 update messages & update button to match new change
This commit is contained in:
Lisbet Alvarez authored and Lisbet Alvarez committed 2024-07-15 17:23:00 -07:00
1 parent 80d9ce2ec1
commit ea3d040b53
5 files changed
+9 -5

No files matched your search

@@ -584,15 +584,18 @@ role:
manage-scopes:
title: Manage Scopes
description: Select which scopes you want to add to this role.
success: Scope selection saved
keywords-selected:
description: Just a heads up, you can't select both add all descendants and add all children. You can only choose one or the other.
link: You can read more about it here
manage-custom-scopes:
title: Manage Custom Scopes
description: Select which specific orgs you want to apply to this role's grant sets.
success: Custom scope selection saved
manage-org-projects:
title: 'Add Projects in {orgDisplayName}'
title: Add Projects in {orgDisplayName}
description: Select which projects in this org you want to apply to this role's grant sets.
success: Projects in org have been updated
no-org-scopes:
title: No Org Scopes Available
description: Org scopes are not available for assignment.
@@ -611,6 +614,7 @@ role:
text: Manage custom scopes
help: Customize which scopes are associated with this role.
view-projects: '{selected}/{total} total projects'
apply: Apply changes to org
form:
this:
label: Add this scope
@@ -71,7 +71,7 @@
/>
<form.actions
@submitText={{t 'actions.save'}}
@submitText={{t 'resources.role.scope.actions.apply'}}
@cancelText={{t 'actions.cancel'}}
/>
{{else}}
@@ -28,7 +28,7 @@ export default class ScopesScopeRolesRoleManageScopesIndexController extends Con
@action
@loading
@notifyError(({ message }) => message, { catch: true })
@notifySuccess('notifications.add-success')
@notifySuccess('resources.role.scope.messages.manage-scopes.success')
async setGrantScopes(role, grantScopeIDs) {
await role.setGrantScopes(grantScopeIDs);
this.router.replaceWith('scopes.scope.roles.role.scopes');
@@ -48,7 +48,7 @@ export default class ScopesScopeRolesRoleManageScopesManageCustomScopesControlle
@action
@loading
@notifyError(({ message }) => message, { catch: true })
@notifySuccess('notifications.add-success')
@notifySuccess('resources.role.scope.messages.manage-custom-scopes.success')
async setGrantScopes(role, grantScopeIDs) {
await role.setGrantScopes(grantScopeIDs);
this.manageScopes.showCheckIcon = true;
@@ -48,7 +48,7 @@ export default class ScopesScopeRolesRoleManageScopesManageOrgProjectsController
@action
@loading
@notifyError(({ message }) => message, { catch: true })
@notifySuccess('notifications.add-success')
@notifySuccess('resources.role.scope.messages.manage-org-projects.success')
async setGrantScopes(role, grantScopeIDs) {
await role.setGrantScopes(grantScopeIDs);
this.manageScopes.showCheckIcon = true;