]> source.dussan.org Git - sonarqube.git/commitdiff
GOV-289 Porfolio deletion should redirect to Portfolios page
authorStas Vilchik <stas.vilchik@sonarsource.com>
Fri, 12 Jan 2018 15:21:13 +0000 (16:21 +0100)
committerStas Vilchik <stas.vilchik@sonarsource.com>
Fri, 12 Jan 2018 16:37:53 +0000 (17:37 +0100)
server/sonar-web/src/main/js/apps/project-admin/deletion/Form.js

index c4de553d99d1e4b2468b8ac481e80fa86d394342..d2ae453f4ed9ab7f4d23a9a8f53710febb4cef70 100644 (file)
@@ -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);
   };