From: Stas Vilchik Date: Fri, 12 Jan 2018 15:21:13 +0000 (+0100) Subject: GOV-289 Porfolio deletion should redirect to Portfolios page X-Git-Tag: 7.0-RC1~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c89cf7b52ffe25c0e1e173f86d186e1283894920;p=sonarqube.git GOV-289 Porfolio deletion should redirect to Portfolios page --- diff --git a/server/sonar-web/src/main/js/apps/project-admin/deletion/Form.js b/server/sonar-web/src/main/js/apps/project-admin/deletion/Form.js index c4de553d99d..d2ae453f4ed 100644 --- a/server/sonar-web/src/main/js/apps/project-admin/deletion/Form.js +++ b/server/sonar-web/src/main/js/apps/project-admin/deletion/Form.js @@ -61,7 +61,7 @@ export default class Form extends React.PureComponent { const { component } = this.props; const deleteMethod = component.qualifier === 'TRK' ? deleteProject : deletePortfolio; deleteMethod(component.key) - .then(() => this.context.router.replace('/')) + .then(() => this.context.router.replace(component.qualifier === 'TRK' ? '/' : '/portfolios')) .catch(this.stopLoading); };