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

@@ -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;