[ARVADOS-WORKBENCH2] created: 2.1.0-136-g685165ce
Git user
git at public.arvados.org
Fri Jan 8 20:44:14 UTC 2021
at 685165ce25015be034d92456513785abe03e9ba0 (commit)
commit 685165ce25015be034d92456513785abe03e9ba0
Author: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
Date: Tue Jan 5 21:23:15 2021 +0100
17231: Changed the way we navigate to a other page
Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
diff --git a/src/views-components/api-token/api-token.tsx b/src/views-components/api-token/api-token.tsx
index f4b50e36..b2823118 100644
--- a/src/views-components/api-token/api-token.tsx
+++ b/src/views-components/api-token/api-token.tsx
@@ -11,7 +11,6 @@ import { AuthService } from "~/services/auth-service/auth-service";
import { navigateToRootProject, navigateToLinkAccount } from "~/store/navigation/navigation-action";
import { Config } from "~/common/config";
import { getAccountLinkData } from "~/store/link-account-panel/link-account-panel-actions";
-import { replace } from "react-router-redux";
interface ApiTokenProps {
authService: AuthService;
@@ -31,7 +30,7 @@ export const ApiToken = connect()(
if (loadMainApp) {
if (redirectURL) {
this.props.authService.removeTargetURL();
- this.props.dispatch(replace(redirectURL));
+ window.location.href = redirectURL;
}
else if (this.props.dispatch(getAccountLinkData())) {
this.props.dispatch(navigateToLinkAccount);
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list