Fix app installation error redirection (#3943)
This commit is contained in:
parent
a7d39d7f19
commit
1c7486818b
4 changed files with 7 additions and 4 deletions
5
.changeset/hungry-buses-pump.md
Normal file
5
.changeset/hungry-buses-pump.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
"saleor-dashboard": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Once app installation failed, error page redirected to Dashboard root. Now it's fixed - failed installation redirects to the Apps page.
|
|
@ -39,4 +39,3 @@ export const AppInstallErrorPage: React.FC<AppInstallErrorPageProps> = ({
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default AppInstallErrorPage;
|
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
export * from "./AppInstallErrorPage";
|
export * from "./AppInstallErrorPage";
|
||||||
export { default } from "./AppInstallErrorPage";
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import AppInstallErrorPage from "@dashboard/apps/components/AppInstallErrorPage";
|
import {AppInstallErrorPage} from "@dashboard/apps/components/AppInstallErrorPage";
|
||||||
import AppInstallPage from "@dashboard/apps/components/AppInstallPage";
|
import AppInstallPage from "@dashboard/apps/components/AppInstallPage";
|
||||||
import {
|
import {
|
||||||
AppInstallUrlQueryParams,
|
AppInstallUrlQueryParams,
|
||||||
|
@ -100,7 +100,7 @@ export const AppInstallView: React.FC<Props> = ({ params }) => {
|
||||||
<WindowTitle title={intl.formatMessage(messages.installApp)} />
|
<WindowTitle title={intl.formatMessage(messages.installApp)} />
|
||||||
{!!fetchManifestOpts.data?.appFetchManifest?.errors?.length ||
|
{!!fetchManifestOpts.data?.appFetchManifest?.errors?.length ||
|
||||||
!!fetchManifestOpts.error ? (
|
!!fetchManifestOpts.error ? (
|
||||||
<AppInstallErrorPage onBack={() => navigate("/")} />
|
<AppInstallErrorPage onBack={navigateToAppsList} />
|
||||||
) : (
|
) : (
|
||||||
<AppInstallPage
|
<AppInstallPage
|
||||||
data={fetchManifestOpts?.data?.appFetchManifest?.manifest ?? null}
|
data={fetchManifestOpts?.data?.appFetchManifest?.manifest ?? null}
|
||||||
|
|
Loading…
Reference in a new issue