From b2db75ddc8d50e4148a63d3067e820d18d0862c7 Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Mon, 31 Aug 2020 14:46:18 -0400 Subject: [PATCH] refactor: Remove unused transitions for principal removal --- .../scopes/scope/projects/project/targets/target/host-sets.js | 1 - ui/core/app/routes/scopes/scope/roles/role/principals.js | 1 - .../scopes/scope/projects/project/targets/target/host-sets.hbs | 1 - ui/core/app/templates/scopes/scope/roles/role/principals.hbs | 1 - 4 files changed, 4 deletions(-) diff --git a/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets.js b/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets.js index f2ca46232..d60d1d2f0 100644 --- a/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets.js +++ b/ui/core/app/routes/scopes/scope/projects/project/targets/target/host-sets.js @@ -62,7 +62,6 @@ export default class ScopesScopeProjectsProjectTargetsTargetHostSetsRoute extend await target.removeHostSet(hostSet.id); this.refresh(); this.notify.success(this.intl.t('notify.delete-success')); - this.transitionTo('scopes.scope.projects.project.targets.target.host-sets'); } catch (error) { // TODO: replace with translated strings this.notify.error(error.message, { closeAfter: null }); diff --git a/ui/core/app/routes/scopes/scope/roles/role/principals.js b/ui/core/app/routes/scopes/scope/roles/role/principals.js index 9e20116b8..91fa7eb2a 100644 --- a/ui/core/app/routes/scopes/scope/roles/role/principals.js +++ b/ui/core/app/routes/scopes/scope/roles/role/principals.js @@ -54,7 +54,6 @@ export default class ScopesScopeRolesRolePrincipalsRoute extends Route { await role.removePrincipal(principal.id); this.refresh(); this.notify.success(this.intl.t('notify.delete-success')); - this.transitionTo('scopes.scope.roles.role.principals'); } catch (error) { // TODO: replace with translated strings this.notify.error(error.message, { closeAfter: null }); diff --git a/ui/core/app/templates/scopes/scope/projects/project/targets/target/host-sets.hbs b/ui/core/app/templates/scopes/scope/projects/project/targets/target/host-sets.hbs index 00a5058d5..859be4dfa 100644 --- a/ui/core/app/templates/scopes/scope/projects/project/targets/target/host-sets.hbs +++ b/ui/core/app/templates/scopes/scope/projects/project/targets/target/host-sets.hbs @@ -32,7 +32,6 @@ @text="{{t "actions.manage"}}" as |dropdown| > diff --git a/ui/core/app/templates/scopes/scope/roles/role/principals.hbs b/ui/core/app/templates/scopes/scope/roles/role/principals.hbs index b55c636c6..9719faf7a 100644 --- a/ui/core/app/templates/scopes/scope/roles/role/principals.hbs +++ b/ui/core/app/templates/scopes/scope/roles/role/principals.hbs @@ -31,7 +31,6 @@ @text="{{t "actions.manage"}}" as |dropdown| >