refactor: 💡 migrate to router.transitionTo due to deprecations

This commit is contained in:
Randall Morey committed 2022-01-03 12:35:48 -05:00
1 parent 7e354df44c
commit 8bfa454df5
31 files changed
+117 -69

No files matched your search

@@ -41,7 +41,9 @@ export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsRoute extends
const { isNew } = managedGroup;
managedGroup.rollbackAttributes();
if (isNew) {
this.transitionTo('scopes.scope.auth-methods.auth-method.managed-groups');
this.router.transitionTo(
'scopes.scope.auth-methods.auth-method.managed-groups'
);
}
}
@@ -58,12 +60,12 @@ export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsRoute extends
async save(managedGroup) {
await managedGroup.save();
if (this.can.can('read model', managedGroup)) {
await this.transitionTo(
await this.router.transitionTo(
'scopes.scope.auth-methods.auth-method.managed-groups.managed-group',
managedGroup
);
} else {
await this.transitionTo(
await this.router.transitionTo(
'scopes.scope.auth-methods.auth-method.managed-groups'
);
}