fix: 🐛 transition aborted error when deleting or saving (#2918)

This commit is contained in:
Lisbet Alvarez authored and GitHub committed 2025-07-02 13:06:17 -07:00
1 parent c92e93ab1c
commit bd1b8542eb
9 files changed
+11 -11

No files matched your search

@@ -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();
}
@@ -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();
}
@@ -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();
}
@@ -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();
}
@@ -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();
}
@@ -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();
}
@@ -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();
}
@@ -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();
}
@@ -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();
}