From bd1b8542eb8c94ca3ac43bbe5c407b9f47c48826 Mon Sep 17 00:00:00 2001 From: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com> Date: Wed, 2 Jul 2025 13:06:17 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20transition=20aborted=20er?= =?UTF-8?q?ror=20when=20deleting=20or=20saving=20(#2918)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/admin/app/controllers/scopes/scope/aliases/index.js | 4 ++-- ui/admin/app/controllers/scopes/scope/auth-methods/index.js | 2 +- .../app/controllers/scopes/scope/credential-stores/index.js | 2 +- ui/admin/app/controllers/scopes/scope/groups/index.js | 2 +- ui/admin/app/controllers/scopes/scope/host-catalogs/index.js | 2 +- ui/admin/app/controllers/scopes/scope/roles/index.js | 2 +- ui/admin/app/controllers/scopes/scope/targets/index.js | 2 +- ui/admin/app/controllers/scopes/scope/users/index.js | 2 +- ui/admin/app/controllers/scopes/scope/workers/index.js | 4 ++-- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ui/admin/app/controllers/scopes/scope/aliases/index.js b/ui/admin/app/controllers/scopes/scope/aliases/index.js index bbf06a3cf..5a1a72640 100644 --- a/ui/admin/app/controllers/scopes/scope/aliases/index.js +++ b/ui/admin/app/controllers/scopes/scope/aliases/index.js @@ -87,7 +87,7 @@ export default class ScopesScopeAliasesIndexController extends Controller { if (this.can.can('read model', alias)) { await this.router.transitionTo('scopes.scope.aliases.alias', alias); } else { - await this.router.transitionTo('scopes.scope.aliases'); + this.router.transitionTo('scopes.scope.aliases'); } await this.router.refresh(); } @@ -118,7 +118,7 @@ export default class ScopesScopeAliasesIndexController extends Controller { @notifySuccess('notifications.delete-success') async deleteAlias(alias) { await alias.destroyRecord(); - await this.router.replaceWith('scopes.scope.aliases'); + this.router.replaceWith('scopes.scope.aliases'); await this.router.refresh(); } diff --git a/ui/admin/app/controllers/scopes/scope/auth-methods/index.js b/ui/admin/app/controllers/scopes/scope/auth-methods/index.js index 334c95eb2..fb00a0fd7 100644 --- a/ui/admin/app/controllers/scopes/scope/auth-methods/index.js +++ b/ui/admin/app/controllers/scopes/scope/auth-methods/index.js @@ -154,7 +154,7 @@ export default class ScopesScopeAuthMethodsIndexController extends Controller { authMethod, ); } else { - await this.router.transitionTo('scopes.scope.auth-methods'); + this.router.transitionTo('scopes.scope.auth-methods'); } await this.router.refresh(); } diff --git a/ui/admin/app/controllers/scopes/scope/credential-stores/index.js b/ui/admin/app/controllers/scopes/scope/credential-stores/index.js index e525e6296..f2ddbe3b3 100644 --- a/ui/admin/app/controllers/scopes/scope/credential-stores/index.js +++ b/ui/admin/app/controllers/scopes/scope/credential-stores/index.js @@ -94,7 +94,7 @@ export default class ScopesScopeCredentialStoresIndexController extends Controll credentialStore, ); } else { - await this.router.transitionTo('scopes.scope.credential-stores'); + this.router.transitionTo('scopes.scope.credential-stores'); } await this.router.refresh(); } diff --git a/ui/admin/app/controllers/scopes/scope/groups/index.js b/ui/admin/app/controllers/scopes/scope/groups/index.js index 955f0e8a8..110e994a2 100644 --- a/ui/admin/app/controllers/scopes/scope/groups/index.js +++ b/ui/admin/app/controllers/scopes/scope/groups/index.js @@ -87,7 +87,7 @@ export default class ScopesScopeGroupsIndexController extends Controller { if (this.can.can('read model', group)) { await this.router.transitionTo('scopes.scope.groups.group', group); } else { - await this.router.transitionTo('scopes.scope.groups'); + this.router.transitionTo('scopes.scope.groups'); } await this.router.refresh(); } diff --git a/ui/admin/app/controllers/scopes/scope/host-catalogs/index.js b/ui/admin/app/controllers/scopes/scope/host-catalogs/index.js index ab91bdd0c..6ec122c8e 100644 --- a/ui/admin/app/controllers/scopes/scope/host-catalogs/index.js +++ b/ui/admin/app/controllers/scopes/scope/host-catalogs/index.js @@ -107,7 +107,7 @@ export default class ScopesScopeHostCatalogsIndexController extends Controller { hostCatalog, ); } else { - await this.router.transitionTo('scopes.scope.host-catalogs'); + this.router.transitionTo('scopes.scope.host-catalogs'); } await this.router.refresh(); } diff --git a/ui/admin/app/controllers/scopes/scope/roles/index.js b/ui/admin/app/controllers/scopes/scope/roles/index.js index 416060733..8a621c14f 100644 --- a/ui/admin/app/controllers/scopes/scope/roles/index.js +++ b/ui/admin/app/controllers/scopes/scope/roles/index.js @@ -101,7 +101,7 @@ export default class ScopesScopeRolesIndexController extends Controller { if (this.can.can('read model', role)) { await this.router.transitionTo('scopes.scope.roles.role', role); } else { - await this.router.transitionTo('scopes.scope.roles'); + this.router.transitionTo('scopes.scope.roles'); } await this.router.refresh(); } diff --git a/ui/admin/app/controllers/scopes/scope/targets/index.js b/ui/admin/app/controllers/scopes/scope/targets/index.js index da677a447..594707a4c 100644 --- a/ui/admin/app/controllers/scopes/scope/targets/index.js +++ b/ui/admin/app/controllers/scopes/scope/targets/index.js @@ -151,7 +151,7 @@ export default class ScopesScopeTargetsIndexController extends Controller { if (this.can.can('read model', target)) { await this.router.transitionTo('scopes.scope.targets.target', target); } else { - await this.router.transitionTo('scopes.scope.targets'); + this.router.transitionTo('scopes.scope.targets'); } await this.router.refresh(); } diff --git a/ui/admin/app/controllers/scopes/scope/users/index.js b/ui/admin/app/controllers/scopes/scope/users/index.js index 36b8c881d..32d72f34a 100644 --- a/ui/admin/app/controllers/scopes/scope/users/index.js +++ b/ui/admin/app/controllers/scopes/scope/users/index.js @@ -101,7 +101,7 @@ export default class ScopesScopeUsersIndexController extends Controller { if (this.can.can('read model', user)) { await this.router.transitionTo('scopes.scope.users.user', user); } else { - await this.router.transitionTo('scopes.scope.users'); + this.router.transitionTo('scopes.scope.users'); } await this.router.refresh(); } diff --git a/ui/admin/app/controllers/scopes/scope/workers/index.js b/ui/admin/app/controllers/scopes/scope/workers/index.js index 4a58bc297..b72442ba7 100644 --- a/ui/admin/app/controllers/scopes/scope/workers/index.js +++ b/ui/admin/app/controllers/scopes/scope/workers/index.js @@ -162,7 +162,7 @@ export default class ScopesScopeWorkersIndexController extends Controller { if (this.can.can('read model', worker)) { await this.router.transitionTo('scopes.scope.workers.worker', worker); } else { - await this.router.transitionTo('scopes.scope.workers'); + this.router.transitionTo('scopes.scope.workers'); } await this.router.refresh(); } @@ -178,7 +178,7 @@ export default class ScopesScopeWorkersIndexController extends Controller { @notifySuccess('notifications.delete-success') async delete(worker) { await worker.destroyRecord(); - await this.router.replaceWith('scopes.scope.workers'); + this.router.replaceWith('scopes.scope.workers'); await this.router.refresh(); }