refactor: 💡 update messages & update button to match new change (#2382)
* refactor: 💡 update messages & update button to match new change
This commit is contained in:
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');
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user